We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9af33b commit 281c2d1Copy full SHA for 281c2d1
1 file changed
cas-parser-java-core/src/main/kotlin/com/cas_parser/api/core/http/RetryingHttpClient.kt
@@ -214,13 +214,8 @@ private constructor(
214
}
215
216
?.let { retryAfterNanos ->
217
- // If the API asks us to wait a certain amount of time (and it's a reasonable
218
- // amount), just
219
- // do what it says.
220
- val retryAfter = Duration.ofNanos(retryAfterNanos.toLong())
221
- if (retryAfter in Duration.ofNanos(0)..Duration.ofMinutes(1)) {
222
- return retryAfter
223
- }
+ // If the API asks us to wait a certain amount of time, do what it says.
+ return Duration.ofNanos(retryAfterNanos.toLong())
224
225
226
// Apply exponential backoff, but not more than the max.
0 commit comments