mirror of
https://github.com/actix/actix-web.git
synced 2025-01-02 05:18:44 +00:00
convert timer error to io error
This commit is contained in:
parent
8b0fbb85d1
commit
1be27e17f8
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue