-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v17] Use thread-local RNGs for jitters (#48911)
* Use math/rand/v2's thread-local RNG for jitters * Replace NewJitter() with DefaultJitter * Replace NewFullJitter() with FullJitter * Replace NewHalfJitter() with HalfJitter * Replace NewSeventhJitter() with SeventhJitter * Inline jitters in lib/utils/diagnostics/latency * Replace var jitters in lib/utils with proxy functions * Replace utils.HalfJitter with retryutils.HalfJitter * Replace utils.FullJitter with retryutils.FullJitter * Replace utils.SeventhJitter with retryutils.SeventhJitter * Replace sharded jitters with thread-local ones * Remove NewSeventhJitter reference in integrations
- Loading branch information
1 parent
bc4ff78
commit 9df9a7a
Showing
58 changed files
with
266 additions
and
394 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
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
Oops, something went wrong.