We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c81c01 commit 7fd0cfdCopy full SHA for 7fd0cfd
1 file changed
src/core.ts
@@ -632,9 +632,9 @@ export abstract class APIClient {
632
}
633
634
635
- // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
636
- // just do what it says, but otherwise calculate a default
637
- 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) {
638
const maxRetries = options.maxRetries ?? this.maxRetries;
639
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
640
0 commit comments