-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(DA): use expo backoff in retries #739
fix(DA): use expo backoff in retries #739
Conversation
// Delay returns the current delay. The subsequent delay will be increased by the growth factor up to the maximum. | ||
func (b *Backoff) Delay() time.Duration { | ||
ret := b.delay | ||
b.delay = time.Duration(float64(b.delay) * b.growthFactor) |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the min and max delay of the backoff function could be a parameter in the config, but it can be a todo for another PR.
Co-authored-by: github-actions <[email protected]>
paritally adress #742
Also, make the health event stringer, and fix a typo in 1 log message