We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5861e63 commit 4809458Copy full SHA for 4809458
1 file changed
src/client.ts
@@ -649,9 +649,9 @@ export class SentDm {
649
}
650
651
652
- // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
653
- // just do what it says, but otherwise calculate a default
654
- 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) {
655
const maxRetries = options.maxRetries ?? this.maxRetries;
656
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
657
0 commit comments