We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e42fe commit c635e70Copy full SHA for c635e70
1 file changed
onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/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