1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00
This commit is contained in:
Rob Ede
2021-01-07 00:35:19 +00:00
parent 00ba8d5549
commit 85753130d9
2 changed files with 6 additions and 10 deletions

View File

@ -291,15 +291,11 @@ where
type Future = H2ServiceHandlerResponse<T, S, B>;
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
self.flow
.borrow_mut()
.service
.poll_ready(cx)
.map_err(|e| {
let e = e.into();
error!("Service readiness error: {:?}", e);
DispatchError::Service(e)
})
self.flow.borrow_mut().service.poll_ready(cx).map_err(|e| {
let e = e.into();
error!("Service readiness error: {:?}", e);
DispatchError::Service(e)
})
}
fn call(&mut self, (io, addr): (T, Option<net::SocketAddr>)) -> Self::Future {