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
https://github.com/cenkalti/backoff/blob/master/tries.go#L24
This line should be if b.numTries < b.maxTries {?
if b.numTries < b.maxTries {
The text was updated successfully, but these errors were encountered:
I should test code before commenting in public :) This is what I have now:
func (b *backOffTries) NextBackOff() time.Duration { if b.maxTries > 0 { b.numTries++ if b.numTries >= b.maxTries { return backoff.Stop } } return b.delegate.NextBackOff() }
Sorry, something went wrong.
Oh, silly me, I thought this was different than #52 but after looking again I think it's the same.
2ea60e5
No branches or pull requests
https://github.com/cenkalti/backoff/blob/master/tries.go#L24
This line should be
if b.numTries < b.maxTries {
?The text was updated successfully, but these errors were encountered: