-
-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exponential backoff calculation (#21959)
Fixes #21958 Required the update of tokio-retry to tokio-retry2 which is a fork of the original (which is now unmaintained?) The backoff algorithm is now ``` sleep = random(0, base * 2 ** attempt) ``` so they will approximate 200ms, 400ms, 800ms, 1600ms Previously it was ``` sleep = random(0, base ** attempt) ``` which was 200ms, 40000ms, 8000000ms, 1600000000ms --------- Co-authored-by: Huon Wilson <[email protected]>
- Loading branch information
1 parent
00a5167
commit 303a082
Showing
4 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters