We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 803da57 commit a67348aCopy full SHA for a67348a
1 file changed
core/src/main/scala/ox/resilience/AdaptiveRetry.scala
@@ -76,7 +76,7 @@ case class AdaptiveRetry(
76
// If we want to retry we try to acquire tokens from bucket
77
if config.resultPolicy.isWorthRetrying(value) then
78
if shouldPayFailureCost(Left(value)) then ScheduleStop(!tokenBucket.tryAcquire(failureCost))
79
- else ScheduleStop.Yes
+ else ScheduleStop.No
80
else ScheduleStop.Yes
81
case Right(value) =>
82
// If we are successful, we release tokens to bucket and end schedule
0 commit comments