Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Apr 10, 2024
1 parent 366229b commit 40547f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jitter/sleep.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func safePowerOfTwo(n int64) int64 {
} else if n > 62 {
return math.MaxInt64 // 2 ** n will overflow
}
return 1 << n // 2 ** n == 1 << n
return 1 << n // equal to 2 ** n
}

// computeJitterUpperBoundMs calculates min(maxMs, baseMs * 2 ** attempt).
Expand Down

0 comments on commit 40547f3

Please sign in to comment.