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

feat: allow default transaction attempts to be changed #179

Merged
merged 5 commits into from
Feb 16, 2024

Conversation

taka-oyama
Copy link
Collaborator

@taka-oyama taka-oyama commented Feb 8, 2024

Warning: Connection::transaction()'s $attempts argument's default value was changed from 10 to -1 (which is a magic number for default value which is 11).

Default is set to 11 because Spanner library sets default retries to 10 and we add 1 to that since laravel defines amount of attempts not amount of retries.

@taka-oyama taka-oyama added the enhancement New feature or request label Feb 8, 2024
@taka-oyama taka-oyama self-assigned this Feb 8, 2024
@taka-oyama taka-oyama force-pushed the feat/add-transaction-attempt-setter branch from 3fdf7f6 to c9faa11 Compare February 16, 2024 06:08
@taka-oyama taka-oyama force-pushed the feat/add-transaction-attempt-setter branch from c9faa11 to dc0aa0f Compare February 16, 2024 06:37
@taka-oyama taka-oyama merged commit fc7bf53 into master Feb 16, 2024
1 check passed
@taka-oyama taka-oyama deleted the feat/add-transaction-attempt-setter branch February 16, 2024 06:51
@taka-oyama taka-oyama added this to the 7.0 milestone Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants