1
0
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:
Nikolay Kim 2018-06-21 10:05:20 +06:00
parent 8b0fbb85d1
commit 1be27e17f8

View File

@ -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(())