Skip to content

Commit 281c2d1

Browse files
chore(internal): codegen related update
1 parent d9af33b commit 281c2d1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/core/http/RetryingHttpClient.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,8 @@ private constructor(
214214
}
215215
}
216216
?.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-
}
217+
// If the API asks us to wait a certain amount of time, do what it says.
218+
return Duration.ofNanos(retryAfterNanos.toLong())
224219
}
225220

226221
// Apply exponential backoff, but not more than the max.

0 commit comments

Comments
 (0)