Skip to content

Commit

Permalink
fix(grpc): impl From<anyhow::Error> for Status
Browse files Browse the repository at this point in the history
  • Loading branch information
Millione committed Jul 31, 2023
1 parent 0f0b9c4 commit 3802f55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions volo-grpc/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,12 @@ impl From<LoadBalanceError> for Status {
}
}

impl From<anyhow::Error> for Status {
fn from(err: anyhow::Error) -> Self {
Self::from_error(err.into())
}
}

impl Retryable for Status {
fn retryable(&self) -> bool {
matches!(
Expand Down

0 comments on commit 3802f55

Please sign in to comment.