mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 16:02:59 +01:00
convert timer error to io error
This commit is contained in:
parent
8b0fbb85d1
commit
1be27e17f8
@ -392,7 +392,7 @@ impl Pipeline {
|
|||||||
match self.timeout.as_mut().unwrap().poll() {
|
match self.timeout.as_mut().unwrap().poll() {
|
||||||
Ok(Async::Ready(())) => return Err(SendRequestError::Timeout),
|
Ok(Async::Ready(())) => return Err(SendRequestError::Timeout),
|
||||||
Ok(Async::NotReady) => (),
|
Ok(Async::NotReady) => (),
|
||||||
Err(e) => return Err(e.into()),
|
Err(e) => return Err(io::Error::new(io::ErrorKind::Other, e).into()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user