Skip to content

Commit

Permalink
chore: Use t macro instead of reimplementing (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jun 12, 2024
1 parent d1558bd commit df85623
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tonic/src/server/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,7 @@ where
where
B: Stream<Item = Result<T::Encode, Status>> + 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();

Expand Down

0 comments on commit df85623

Please sign in to comment.