We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e372066 commit 77a4e10Copy full SHA for 77a4e10
1 file changed
src/client.ts
@@ -562,9 +562,9 @@ export class Isaacus {
562
}
563
564
565
- // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
566
- // just do what it says, but otherwise calculate a default
567
- if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
+ // If the API asks us to wait a certain amount of time, just do what it
+ // says, but otherwise calculate a default
+ if (timeoutMillis === undefined) {
568
const maxRetries = options.maxRetries ?? this.maxRetries;
569
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
570
0 commit comments