1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-09-30 15:22:02 +00:00
This commit is contained in:
Rob Ede 2021-01-07 00:35:19 +00:00
parent 00ba8d5549
commit 85753130d9
No known key found for this signature in database
GPG key ID: C2A3B36E841A91E6
2 changed files with 6 additions and 10 deletions

View file

@ -291,11 +291,7 @@ 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()
.service
.poll_ready(cx)
.map_err(|e| {
let e = e.into(); let e = e.into();
error!("Service readiness error: {:?}", e); error!("Service readiness error: {:?}", e);
DispatchError::Service(e) DispatchError::Service(e)

View file

@ -581,7 +581,7 @@ where
)), )),
}, },
proto => unimplemented!("Unsupported HTTP version: {:?}.", proto) proto => unimplemented!("Unsupported HTTP version: {:?}.", proto),
} }
} }
} }