diff --git a/rama-tcp/src/server/listener.rs b/rama-tcp/src/server/listener.rs index 2998606c..baf71d2b 100644 --- a/rama-tcp/src/server/listener.rs +++ b/rama-tcp/src/server/listener.rs @@ -211,7 +211,7 @@ where pub async fn serve_fn(self, f: F) where F: Factory, - R: Future> + Send + Sync + 'static, + R: Future> + Send + 'static, O: Send + Sync + 'static, E: Send + Sync + 'static, T: FromContextRequest, @@ -267,7 +267,7 @@ where pub async fn serve_fn_graceful(self, guard: ShutdownGuard, service: F) where F: Factory, - R: Future> + Send + Sync + 'static, + R: Future> + Send + 'static, O: Send + Sync + 'static, E: Send + Sync + 'static, T: FromContextRequest,