Skip to content

Commit

Permalink
remove unrelated
Browse files Browse the repository at this point in the history
Signed-off-by: Wenqi Mou <[email protected]>
  • Loading branch information
Tristan1900 committed Jan 20, 2025
1 parent 738a5f3 commit 05a0f78
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions br/pkg/utils/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ func NewDiskCheckBackoffStrategy() BackoffStrategy {
return NewBackoffStrategy(
WithRemainingAttempts(resetTSRetryTime),
WithDelayTime(resetTSWaitInterval),
WithMaxDelayTime(resetTSMaxWaitInterval),
WithErrorContext(NewZeroRetryContext("disk check")),
WithRetryErrorFunc(isRetryErrFunc),
WithNonRetryErrorFunc(alwaysFalseFunc()),
Expand All @@ -358,7 +357,6 @@ func NewRecoveryBackoffStrategy(isRetryErrFunc func(error) bool) BackoffStrategy
return NewBackoffStrategy(
WithRemainingAttempts(recoveryMaxAttempts),
WithDelayTime(recoveryDelayTime),
WithMaxDelayTime(recoveryMaxDelayTime),
WithErrorContext(NewZeroRetryContext("recovery")),
WithRetryErrorFunc(isRetryErrFunc),
WithNonRetryErrorFunc(alwaysFalseFunc()),
Expand All @@ -369,7 +367,6 @@ func NewFlashBackBackoffStrategy() BackoffStrategy {
return NewBackoffStrategy(
WithRemainingAttempts(FlashbackRetryTime),
WithDelayTime(FlashbackWaitInterval),
WithMaxDelayTime(FlashbackMaxWaitInterval),
WithErrorContext(NewZeroRetryContext("flashback")),
WithRetryErrorFunc(alwaysTrueFunc()),
WithNonRetryErrorFunc(alwaysFalseFunc()),
Expand All @@ -380,7 +377,6 @@ func NewChecksumBackoffStrategy() BackoffStrategy {
return NewBackoffStrategy(
WithRemainingAttempts(ChecksumRetryTime),
WithDelayTime(ChecksumWaitInterval),
WithMaxDelayTime(ChecksumMaxWaitInterval),
WithErrorContext(NewZeroRetryContext("checksum")),
WithRetryErrorFunc(alwaysTrueFunc()),
WithNonRetryErrorFunc(alwaysFalseFunc()),
Expand Down

0 comments on commit 05a0f78

Please sign in to comment.