mirror of
https://github.com/actix/actix-extras.git
synced 2025-09-02 21:16:37 +02:00
map connector timeout error
This commit is contained in:
@@ -92,7 +92,10 @@ pub enum ClientConnectorError {
|
|||||||
|
|
||||||
impl From<ConnectorError> for ClientConnectorError {
|
impl From<ConnectorError> for ClientConnectorError {
|
||||||
fn from(err: ConnectorError) -> ClientConnectorError {
|
fn from(err: ConnectorError) -> ClientConnectorError {
|
||||||
ClientConnectorError::Connector(err)
|
match err {
|
||||||
|
ConnectorError::Timeout => ClientConnectorError::Timeout,
|
||||||
|
_ => ClientConnectorError::Connector(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user