From dd2a48b00c634412adb89ed1f77f06bcc2fcbd1a Mon Sep 17 00:00:00 2001 From: Daniel Gallups Date: Fri, 1 Dec 2023 15:16:50 -0500 Subject: [PATCH] chore: removed commented code for `Service` impl --- jwt-authorizer/src/layer.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/jwt-authorizer/src/layer.rs b/jwt-authorizer/src/layer.rs index 6fdff6f..947a9a7 100644 --- a/jwt-authorizer/src/layer.rs +++ b/jwt-authorizer/src/layer.rs @@ -187,36 +187,6 @@ where } } } -/* -impl Service> for AuthorizationService -where - ReqBody: Send + Sync + 'static, - S: Service> + Clone, - S::Response: From, - C: Clone + DeserializeOwned + Send + Sync + 'static, -{ - type Response = S::Response; - type Error = S::Error; - type Future = ResponseFuture; - - fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { - self.inner.poll_ready(cx) - } - - fn call(&mut self, req: Request) -> Self::Future { - let inner = self.inner.clone(); - // take the service that was ready - let inner = std::mem::replace(&mut self.inner, inner); - - let auth_fut = self.authorize(req); - - ResponseFuture { - state: State::Authorize { auth_fut }, - service: inner, - } - } -} -*/ #[pin_project] /// Response future for [`AuthorizationService`].