Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move transaction default max retry attempts to a const #1542

Merged
merged 3 commits into from
Jun 24, 2021

Conversation

thebrianchen
Copy link

Moving it to a const for better visibility as part of b/147440261.

@thebrianchen thebrianchen requested review from a team as code owners June 23, 2021 21:29
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/nodejs-firestore API. label Jun 23, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 23, 2021
dev/src/index.ts Outdated
@@ -137,6 +137,12 @@ const CLOUD_RESOURCE_HEADER = 'google-cloud-resource-prefix';
*/
export const MAX_REQUEST_RETRIES = 5;

/*!
* The maximum number of times to attempt committing a transaction before
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not just committing it, it is retrying the transaction as a whole. Please rephrase.

@thebrianchen thebrianchen changed the title chore: move transaction default max retry atemmpts to a const chore: move transaction default max retry attempts to a const Jun 24, 2021
@thebrianchen thebrianchen merged commit 7473343 into master Jun 24, 2021
@thebrianchen thebrianchen deleted the bc/tx-const branch June 24, 2021 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/nodejs-firestore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants