Skip to content

Commit 1185eae

Browse files
chore(internal): codegen related update
1 parent aed4171 commit 1185eae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,9 @@ export class Kernel {
716716
}
717717
}
718718

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

0 commit comments

Comments
 (0)