We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a81a9a6 commit 862a3ccCopy full SHA for 862a3cc
1 file changed
src/client.ts
@@ -605,9 +605,9 @@ export class Grid {
605
}
606
607
608
- // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
609
- // just do what it says, but otherwise calculate a default
610
- 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) {
611
const maxRetries = options.maxRetries ?? this.maxRetries;
612
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
613
0 commit comments