mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-22 13:45:13 +02:00
fmt
This commit is contained in:
@@ -291,15 +291,11 @@ where
|
|||||||
type Future = H2ServiceHandlerResponse<T, S, B>;
|
type Future = H2ServiceHandlerResponse<T, S, B>;
|
||||||
|
|
||||||
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||||
self.flow
|
self.flow.borrow_mut().service.poll_ready(cx).map_err(|e| {
|
||||||
.borrow_mut()
|
let e = e.into();
|
||||||
.service
|
error!("Service readiness error: {:?}", e);
|
||||||
.poll_ready(cx)
|
DispatchError::Service(e)
|
||||||
.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 {
|
fn call(&mut self, (io, addr): (T, Option<net::SocketAddr>)) -> Self::Future {
|
||||||
|
@@ -581,7 +581,7 @@ where
|
|||||||
)),
|
)),
|
||||||
},
|
},
|
||||||
|
|
||||||
proto => unimplemented!("Unsupported HTTP version: {:?}.", proto)
|
proto => unimplemented!("Unsupported HTTP version: {:?}.", proto),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user