mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 18:02:58 +01:00
changes
This commit is contained in:
parent
8b0fe6f796
commit
87db4bf741
@ -1,28 +1,7 @@
|
||||
# Changes
|
||||
|
||||
## [0.3.0] - 2019-03-02
|
||||
## [0.1.0] - 2019-03-xx
|
||||
|
||||
### Changed
|
||||
* Refactor resolver and connector services
|
||||
|
||||
* Migrate to actix-service 0.3
|
||||
|
||||
|
||||
## [0.2.0] - 2019-02-01
|
||||
|
||||
### Changed
|
||||
|
||||
* Migrate to actix-service 0.2
|
||||
|
||||
* Upgrade trust-dns-resolver
|
||||
|
||||
* Use tokio-current-thread instead of direct actix-rt dipendency
|
||||
|
||||
|
||||
## [0.1.1] - 2019-01-13
|
||||
|
||||
* Upgrade trust-dns-proto
|
||||
|
||||
|
||||
## [0.1.0] - 2018-12-09
|
||||
|
||||
* Move server to separate crate
|
||||
* Rename crate
|
||||
|
@ -17,7 +17,7 @@ workspace = ".."
|
||||
features = ["ssl"]
|
||||
|
||||
[lib]
|
||||
name = "actix_connector"
|
||||
name = "actix_connect"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[features]
|
||||
|
@ -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) => {
|
||||
|
@ -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),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user