Skip to content

Commit

Permalink
Fix grpc status equals (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
redlsz authored Mar 18, 2024
1 parent 3036b04 commit fe3805c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public void onFailure(Throwable t) {
String nextAttemptId = null;
if (t instanceof StatusRuntimeException) {
StatusRuntimeException exception = (StatusRuntimeException) t;
if (io.grpc.Status.DEADLINE_EXCEEDED.equals(exception.getStatus())) {
if (io.grpc.Status.DEADLINE_EXCEEDED.getCode() == exception.getStatus().getCode()) {
nextAttemptId = request.getAttemptId();
}
}
Expand Down

0 comments on commit fe3805c

Please sign in to comment.