Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <[email protected]>
  • Loading branch information
CabinfeverB committed Apr 10, 2024
1 parent c14b221 commit 721520d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/retry/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ import (
"go.uber.org/zap"
)

const (
maxRecordErrorCount = 20
defaultEnablelimitedRetryForTolerableError = false
)
const maxRecordErrorCount = 20

// RetryableChecker is used to check if the error is retryable.
type RetryableChecker func(err error) bool
Expand Down Expand Up @@ -209,6 +206,7 @@ func (bo *Backoffer) Clone() *Backoffer {
max: bo.max,
total: bo.total,
retryableChecker: bo.retryableChecker,
logInterval: bo.logInterval,
}
}

Expand Down

0 comments on commit 721520d

Please sign in to comment.