Skip to content

Commit

Permalink
Combine
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Apr 10, 2024
1 parent 1f57601 commit 5ad4d83
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 @@ -8,7 +8,7 @@ import (
const DefaultMaxMs = 3500

// computeJitterUpperBoundMs calculates min(maxMs, baseMs * 2 ** attempt).
func computeJitterUpperBoundMs(baseMs int64, maxMs int64, attempts int64) int64 {
func computeJitterUpperBoundMs(baseMs, maxMs, attempts int64) int64 {
if maxMs <= 0 {
return 0
}
Expand Down

0 comments on commit 5ad4d83

Please sign in to comment.