We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed4171 commit 1185eaeCopy full SHA for 1185eae
src/client.ts
@@ -716,9 +716,9 @@ export class Kernel {
716
}
717
718
719
- // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
720
- // just do what it says, but otherwise calculate a default
721
- 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) {
722
const maxRetries = options.maxRetries ?? this.maxRetries;
723
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
724
0 commit comments