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.
2 parents 5216d47 + 8fc1f26 commit 4453baeCopy full SHA for 4453bae
modules/core/src/main/scala/org/scalasteward/core/client/ClientConfiguration.scala
@@ -81,7 +81,9 @@ object ClientConfiguration {
81
duration = seconds.seconds
82
if RetryAfterStatuses.contains(response.status.code)
83
if attempt < maxAttempts.value
84
- } yield Resource.eval(Temporal[F].sleep(duration)).flatMap(_ => run(attempt + 1))
+ } yield Resource
85
+ .eval(response.as[Unit].voidError *> Temporal[F].sleep(duration))
86
+ .flatMap(_ => run(attempt + 1))
87
maybeRetried.getOrElse(Resource.pure(response))
88
}
89
0 commit comments