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: Modify exponential backoff implementation to have no initial sleep #1547

Merged

Conversation

clundin25
Copy link
Contributor

@clundin25 clundin25 commented Jul 3, 2024

chore: No sleep on initial attempt in exponential backoff implementation

It is unintuitive that the initial attempt in the exponential backoff
loop sleeps. This can lead to subtle bugs in future call sites.

This patch refactors the exponential backoff to begin sleeping on the
2nd iteration so requests can be done in a single for loop.
@clundin25 clundin25 requested review from a team as code owners July 3, 2024 00:10
@clundin25 clundin25 added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 3, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 3, 2024
@clundin25 clundin25 assigned westarle and unassigned westarle Jul 3, 2024
@clundin25 clundin25 added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 11, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 11, 2024
@clundin25 clundin25 merged commit 461a3f5 into googleapis:main Jul 11, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants