Skip to content

Commit

Permalink
fix(expr): handle another Tonic error path for `always_retry_on_net…
Browse files Browse the repository at this point in the history
…work_error` (#15876) (#15878)

Co-authored-by: Noel Kwan <[email protected]>
Co-authored-by: xxchan <[email protected]>
  • Loading branch information
3 people authored Mar 25, 2024
1 parent 37a8404 commit defca49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/expr/udf/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ impl Error {
}

pub fn is_tonic_error(&self) -> bool {
matches!(self.inner(), ErrorInner::Tonic(_))
matches!(
self.inner(),
ErrorInner::Tonic(_) | ErrorInner::Flight(FlightError::Tonic(_))
)
}
}

Expand Down

0 comments on commit defca49

Please sign in to comment.