Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

chore: Modify exponential backoff implementation to have no initial sleep#1547

Merged
clundin25 merged 9 commits intogoogleapis:mainfrom
clundin25:exponential-backoff-no-initial-sleep
Jul 11, 2024
Merged

chore: Modify exponential backoff implementation to have no initial sleep#1547
clundin25 merged 9 commits intogoogleapis:mainfrom
clundin25:exponential-backoff-no-initial-sleep

Conversation

@clundin25
Copy link
Copy Markdown
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 a review from a team July 3, 2024 00:10
@clundin25 clundin25 requested a review from a team as a code owner 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants