diff --git a/rust-runtime/aws-smithy-http-server/src/request/request_id.rs b/rust-runtime/aws-smithy-http-server/src/request/request_id.rs index eb4a706252f..9523f67aa3e 100644 --- a/rust-runtime/aws-smithy-http-server/src/request/request_id.rs +++ b/rust-runtime/aws-smithy-http-server/src/request/request_id.rs @@ -135,13 +135,14 @@ impl Layer for ServerRequestIdProviderLayer { } } -impl Service> for ServerRequestIdProvider +impl Service> for ServerRequestIdProvider> where - S: Service>, + S: Service, Response = Response>, + S::Future: std::marker::Send + 'static, { type Response = S::Response; type Error = S::Error; - type Future = S::Future; + type Future = ServerRequestIdResponseFuture; fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { self.inner.poll_ready(cx)