mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +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() {
|
||||
Ok(Async::Ready(())) => return Err(SendRequestError::Timeout),
|
||||
Ok(Async::NotReady) => (),
|
||||
Err(e) => return Err(e.into()),
|
||||
Err(e) => return Err(io::Error::new(io::ErrorKind::Other, e).into()),
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user