We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e1c564 commit 90ac5d3Copy full SHA for 90ac5d3
1 file changed
src/core.ts
@@ -618,9 +618,9 @@ export abstract class APIClient {
618
}
619
620
621
- // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
622
- // just do what it says, but otherwise calculate a default
623
- if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
+ // If the API asks us to wait a certain amount of time, do what it says.
+ // Otherwise calculate a default.
+ if (timeoutMillis === undefined) {
624
const maxRetries = options.maxRetries ?? this.maxRetries;
625
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
626
0 commit comments