1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 20:10:35 +02:00
This commit is contained in:
Nikolay Kim
2019-03-13 14:38:33 -07:00
parent 8b0fe6f796
commit 87db4bf741
4 changed files with 6 additions and 31 deletions

View File

@ -96,7 +96,7 @@ impl Future for ConnectorResponse {
"TCP connector - successfully connected to connecting to {:?} - {:?}",
host, sock.peer_addr()
);
return Ok(Async::Ready(Stream::new(sock, self.host.take().unwrap())));
return Ok(Async::Ready(Stream::new(sock, host)));
}
Ok(Async::NotReady) => return Ok(Async::NotReady),
Err(err) => {

View File

@ -13,10 +13,6 @@ pub enum ConnectError {
#[display(fmt = "No dns records found for the input")]
NoRecords,
/// Connecting took too long
#[display(fmt = "Timeout out while establishing connection")]
Timeout,
/// Invalid input
InvalidInput,
@ -26,5 +22,5 @@ pub enum ConnectError {
/// Connection io error
#[display(fmt = "{}", _0)]
IoError(io::Error),
Io(io::Error),
}