Skip to content

Commit

Permalink
Fix condition of retry missing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhiguo committed Jan 24, 2025
1 parent abd9a05 commit a2c3800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ protected double coolDownIntervalMicros() {

/**
* Refresh permits based on the current time.
* @param nowMicros the current time in microseconds
*
* @param nowMicros the current time in microseconds
*/
protected void refresh(long nowMicros) {
if (nowMicros > nextPermitMicros) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public long getDeadline(long startTime) {
public boolean isEnabled() {
return retry != null && retry > 0 &&
(errorCodes != null && !errorCodes.isEmpty()
|| exceptions != null && !exceptions.isEmpty());
|| exceptions != null && !exceptions.isEmpty()
|| errorMessages != null && !errorMessages.isEmpty());
}

@Override
Expand Down

0 comments on commit a2c3800

Please sign in to comment.