You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.
I remember seeing in the following issue #30 that InitialInterval should not be set after ExponentialBackOff is created. I assume that it is still relevant. It is certainly not obvious though.
first backoff 500ms
elapsed 0s
next backoff 1s
elapsed 1.2044503s
next backoff 1.44s
elapsed 2.9426398s
next backoff 2.0736s
elapsed 5.443746s
next backoff 2.985984s
elapsed 9.0350991s
next backoff 4.29981696s
elapsed 14.203882s
next backoff 6.191736422s
elapsed 21.6420095s
next backoff 8.916100447s
Exponential backoff is supposed to wait longer each successive time it's used. Instead, your implementation returns progressively shorter intervals.
For example, when used this way, NextBackoff will return first
500 ms
and then100 ms
which is obviously wrong.The text was updated successfully, but these errors were encountered: