Releases: juju/retry
v1.0.1
What's Changed
This is a small bugfix update from previous versions, though there is one small behavioral change.
The primary fix is that previously if you did ExpBackoff(min=1.0, max=200, factor=2.0, jitter=false)
, then the times would be in the expected 1.0, 2.0, 4.0. Up to the max. However, when you set jitter=true
, while it would preserve the maximum to be the same time as the original backoff, it would pick a random value from 0ms to the max delay, and then truncate that to the minDelay. Which meant that it actually changed the average wait time to something close to 50% of the expected times.
The new logic does a +/- 20% from the expected delay, and then caps that at min and max. This averages very close to the expected values (in testing, the over time difference is around a 1% shift.)
Full Changelog: https://github.com/juju/retry/compare/v1.0.0...v1.0.1## What's Changed
v1.0.0
What's Changed
- go doc does not work that way by @natefinch in #4
- Use juju/clock. by @howbazaar in #6
- Implement exponential back-off delay generator by @achilleasa in #7
- Update to go 1.17 and latest upstream by @wallyworld in #8
New Contributors
- @natefinch made their first contribution in #4
- @achilleasa made their first contribution in #7
- @wallyworld made their first contribution in #8
Full Changelog: https://github.com/juju/retry/commits/v1.0.0