Skip to content

Commit 335b28e

Browse files
committed
Retry twice, in case clocks don't match perfectly.
1 parent 7f361f1 commit 335b28e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scanner/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function onRateLimit(limitName: string) {
1313
`${limitName} exceeded for request ${JSON.stringify(options)}`,
1414
);
1515

16-
if (retryCount < 1) {
17-
// Retry once.
16+
if (retryCount < 2) {
17+
// Retry twice, just in case the client and server times differ.
1818
console.info(`Retrying after ${retryAfter} seconds.`);
1919
return true;
2020
}

0 commit comments

Comments
 (0)