fix: Handle interceptor errors as responses (#840) (#842)

This commit is contained in:
Alex Pearson
2022-02-15 15:10:35 -05:00
committed by GitHub
parent a542bf4dc0
commit bf44940f9b
3 changed files with 63 additions and 7 deletions
+1 -1
View File
@@ -57,8 +57,8 @@ pub fn generate<T: Service>(
impl<T> #service_ident<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
T::ResponseBody: Default + Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {