diff --git a/tonic-web/src/layer.rs b/tonic-web/src/layer.rs index 8386785..77b03c7 100644 --- a/tonic-web/src/layer.rs +++ b/tonic-web/src/layer.rs @@ -25,7 +25,7 @@ impl Default for GrpcWebLayer { impl Layer for GrpcWebLayer where S: Service, Response = http::Response>, - S: Clone + Send + 'static, + S: Send + 'static, S::Future: Send + 'static, S::Error: Into + Send, {