diff --git a/tonic-build/src/client.rs b/tonic-build/src/client.rs index 67b4792c5..be7d4247b 100644 --- a/tonic-build/src/client.rs +++ b/tonic-build/src/client.rs @@ -50,7 +50,10 @@ pub fn generate( pub fn with_interceptor(inner: T, interceptor: F) -> #service_ident> where F: FnMut(tonic::Request<()>) -> Result, tonic::Status>, - T: Service, Response = http::Response>, + T: Service< + http::Request, + Response = http::Response<>::ResponseBody> + >, >>::Error: Into + Send + Sync, { #service_ident::new(InterceptedService::new(inner, interceptor))