dvergnes commented on a change in pull request #557:
URL: https://github.com/apache/pulsar-client-go/pull/557#discussion_r660196553



##########
File path: pulsar/internal/backoff.go
##########
@@ -40,6 +43,7 @@ func (b *Backoff) Next() time.Duration {
        } else if b.backoff.Nanoseconds() > maxBackoff.Nanoseconds() {
                b.backoff = maxBackoff
        }
+       jitter := rand.Float64() * float64(b.backoff) * jitterPercentage

Review comment:
       Yes, you are right. I updated the PR.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to