Skip to content

Commit

Permalink
fix: Always set the retry attempt to 0 for now (#1251)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
danieljbruce committed Mar 15, 2023
1 parent 52c06a2 commit 5ee6f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table.ts
Expand Up @@ -776,7 +776,7 @@ Please use the format 'prezzy' or '${instance.name}/tables/prezzy'.`);
} as google.bigtable.v2.IReadRowsRequest;

const retryOpts = {
currentRetryAttempt: numConsecutiveErrors,
currentRetryAttempt: 0, // was numConsecutiveErrors
// Handling retries in this client. Specify the retry options to
// make sure nothing is retried in retry-request.
noResponseRetries: 0,
Expand Down

0 comments on commit 5ee6f19

Please sign in to comment.