Skip to content

Commit

Permalink
simplify retry condition when propogate is set
Browse files Browse the repository at this point in the history
  • Loading branch information
amerguy committed Oct 30, 2024
1 parent 4eefc17 commit 0dd8da8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,7 @@ private boolean isRetryableQosStatus(Response response) {
case AUTOMATIC_RETRY:
return Responses.isRetryableQos(response);
case PROPAGATE_429_and_503_TO_CALLER:
return Responses.isQosStatus(response)
&& !Responses.isTooManyRequests(response)
&& !Responses.isUnavailable(response)
&& Responses.isRetryableQos(response);
return Responses.isRetryOther(response) && Responses.isRetryableQos(response);
}
throw new SafeIllegalStateException(
"Encountered unknown propagate QoS configuration", SafeArg.of("serverQoS", serverQoS));
Expand Down

0 comments on commit 0dd8da8

Please sign in to comment.