Skip to content

Commit 5ee6f19

Browse files
authored
fix: Always set the retry attempt to 0 for now (#1251)
* Always set the retry attempt to 0 for now If the retry attempt is greater than 1 then a library called retryRequest creates a large delay. If we force the retry count to be 0 then we skip this delay and the requests run in the required timeline. * fix: Always set the retry attempt to 0 for now
1 parent 52c06a2 commit 5ee6f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/table.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ Please use the format 'prezzy' or '${instance.name}/tables/prezzy'.`);
776776
} as google.bigtable.v2.IReadRowsRequest;
777777

778778
const retryOpts = {
779-
currentRetryAttempt: numConsecutiveErrors,
779+
currentRetryAttempt: 0, // was numConsecutiveErrors
780780
// Handling retries in this client. Specify the retry options to
781781
// make sure nothing is retried in retry-request.
782782
noResponseRetries: 0,

0 commit comments

Comments
 (0)