fix(build): Reduce Default bound requirement (#974)

Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
Conrad Ludgate
2022-04-20 15:38:38 -04:00
committed by GitHub
co-authored by David Pedersen
parent b4f96343af
commit 4533a6e20e
3 changed files with 61 additions and 1 deletions
+2 -1
View File
@@ -58,7 +58,7 @@ pub fn generate<T: Service>(
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Default + Body<Data = Bytes> + Send + 'static,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
@@ -69,6 +69,7 @@ pub fn generate<T: Service>(
pub fn with_interceptor<F>(inner: T, interceptor: F) -> #service_ident<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody>