Skip to content

Commit 4809458

Browse files
chore(internal): codegen related update
1 parent 5861e63 commit 4809458

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,9 @@ export class SentDm {
649649
}
650650
}
651651

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)) {
652+
// If the API asks us to wait a certain amount of time, just do what it
653+
// says, but otherwise calculate a default
654+
if (timeoutMillis === undefined) {
655655
const maxRetries = options.maxRetries ?? this.maxRetries;
656656
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
657657
}

0 commit comments

Comments
 (0)