diff --git a/tonic/src/server/grpc.rs b/tonic/src/server/grpc.rs index 5330b30ed..a19299200 100644 --- a/tonic/src/server/grpc.rs +++ b/tonic/src/server/grpc.rs @@ -428,10 +428,7 @@ where where B: Stream> + Send + 'static, { - let response = match response { - Ok(r) => r, - Err(status) => return status.to_http(), - }; + let response = t!(response); let (mut parts, body) = response.into_http().into_parts();