Fix compile issue

This commit is contained in:
asonix 2022-11-21 11:28:25 -06:00
parent 8afc16786d
commit 5043892981

View file

@ -27,9 +27,9 @@ impl Drop for LogOnDrop {
}
}
impl<S> Transform<S, ServiceRequest> for Timings
impl<S, B> Transform<S, ServiceRequest> for Timings
where
S: Service<ServiceRequest, Response = ServiceResponse, Error = actix_web::Error>,
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = actix_web::Error>,
S::Future: 'static,
{
type Response = S::Response;
@ -43,9 +43,9 @@ where
}
}
impl<S> Service<ServiceRequest> for TimingsMiddleware<S>
impl<S, B> Service<ServiceRequest> for TimingsMiddleware<S>
where
S: Service<ServiceRequest, Response = ServiceResponse, Error = actix_web::Error>,
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = actix_web::Error>,
S::Future: 'static,
{
type Response = S::Response;