We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am confused about this part in BackoffDelay https://github.com/avast/retry-go/blob/master/options.go#L62 .
As n is starting from 0, why there is a -1 when computing the delay? Shouldn't it be config.delay * (1 << n)?
n
-1
config.delay * (1 << n)
Thanks in advance.
The text was updated successfully, but these errors were encountered:
You're right. It looks like the first retry is executed immediately. I'm not sure if it is on purpose or not.
Sorry, something went wrong.
I have created a PR with a fix (#19) in the case it is a bug.
No branches or pull requests
I am confused about this part in BackoffDelay https://github.com/avast/retry-go/blob/master/options.go#L62 .
As
n
is starting from 0, why there is a-1
when computing the delay? Shouldn't it beconfig.delay * (1 << n)
?Thanks in advance.
The text was updated successfully, but these errors were encountered: