Skip to content

Commit 62f81cc

Browse files
authored
chore: Use public api for exp backoff delay (#1268)
1 parent d33f9df commit 62f81cc

File tree

1 file changed

+2
-2
lines changed
  • akka-projection-dynamodb/src/main/scala/akka/projection/dynamodb

1 file changed

+2
-2
lines changed

Diff for: akka-projection-dynamodb/src/main/scala/akka/projection/dynamodb/Requests.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import scala.jdk.CollectionConverters._
1111

1212
import akka.actor.typed.ActorSystem
1313
import akka.annotation.InternalApi
14-
import akka.pattern.BackoffSupervisor
14+
import akka.pattern.RetrySupport
1515
import akka.pattern.after
1616
import org.slf4j.Logger
1717
import org.slf4j.LoggerFactory
@@ -59,7 +59,7 @@ object Requests {
5959
Future.failed(failOnMaxRetries(response))
6060
} else { // retry after exponential backoff
6161
val nextRetry = retries + 1
62-
val delay = BackoffSupervisor.calculateDelay(retries, minBackoff, maxBackoff, randomFactor)
62+
val delay = RetrySupport.calculateExponentialBackoffDelay(retries, minBackoff, maxBackoff, randomFactor)
6363
onRetry(response, nextRetry, delay)
6464
after(delay) {
6565
retry(

0 commit comments

Comments
 (0)