1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 15:07:43 +02:00

use convert err on forward_ready! (#246)

This commit is contained in:
Rob Ede
2021-01-09 14:13:16 +00:00
committed by GitHub
parent a1982bdbad
commit f751cf5acb
15 changed files with 34 additions and 35 deletions

View File

@ -149,9 +149,7 @@ where
type Error = TimeoutError<S::Error>;
type Future = TimeoutServiceResponse<S, Req>;
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
self.service.poll_ready(cx).map_err(TimeoutError::Service)
}
actix_service::forward_ready!(service);
fn call(&mut self, request: Req) -> Self::Future {
TimeoutServiceResponse {