Skip to content

Commit

Permalink
discovery (backoff): fix typo in comment (#2214)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Mar 24, 2023
1 parent 6cab5e8 commit 8c466ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/discovery/backoff/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type BackoffStrategy interface {
// Jitter must return a duration between min and max. Min must be lower than, or equal to, max.
type Jitter func(duration, min, max time.Duration, rng *rand.Rand) time.Duration

// FullJitter returns a random number uniformly chose from the range [min, boundedDur].
// FullJitter returns a random number, uniformly chosen from the range [min, boundedDur].
// boundedDur is the duration bounded between min and max.
func FullJitter(duration, min, max time.Duration, rng *rand.Rand) time.Duration {
if duration <= min {
Expand Down

0 comments on commit 8c466ab

Please sign in to comment.