Client::poll_ready() returns an Error if next stream ID would overflow (#103)

Closes #102
This commit is contained in:
Sean McArthur
2017-09-19 14:16:32 -07:00
committed by GitHub
parent 0c8bd75224
commit db8c109817
5 changed files with 17 additions and 6 deletions

View File

@@ -250,7 +250,7 @@ where
B: IntoBuf,
{
/// Returns `Ready` when new the connection is able to support a new request stream.
pub fn poll_send_request_ready(&mut self) -> Async<()> {
pub fn poll_send_request_ready(&mut self) -> Poll<(), ::Error> {
self.streams.poll_send_request_ready()
}