Fixes
This commit is contained in:
@@ -13,7 +13,7 @@ use std::os::windows::io::{AsRawSocket, RawSocket};
|
||||
use postgres_protocol::message::frontend;
|
||||
use postgres_protocol::message::backend;
|
||||
|
||||
use {Error, Result, TlsMode};
|
||||
use {Result, TlsMode};
|
||||
use error;
|
||||
use tls::TlsStream;
|
||||
use params::{ConnectParams, Host};
|
||||
|
||||
@@ -147,15 +147,13 @@ where
|
||||
}
|
||||
Ok(Async::NotReady) => {
|
||||
match sink.poll_complete() {
|
||||
Ok(Async::Ready(())) => return Ok(Async::Ready((sink, stream.into_inner()))),
|
||||
Ok(Async::NotReady) => {
|
||||
Ok(Async::Ready(())) | Ok(Async::NotReady) => {
|
||||
self.sink = Some(sink);
|
||||
self.stream = Some(stream);
|
||||
return Ok(Async::NotReady);
|
||||
}
|
||||
Err(e) => return Err((e, sink, stream.into_inner())),
|
||||
}
|
||||
return Ok(Async::NotReady);
|
||||
}
|
||||
Err(e) => return Err((e.into(), sink, stream.into_inner())),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user