Skip to content

Commit

Permalink
Go 1.21 ships with built-in min and max functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwhatcott committed Jul 23, 2024
1 parent 8f9133e commit 697bca3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions internal/sdk/retry_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,6 @@ func (r *RetryClient) random(cap int) int {
return r.rand.Intn(cap)
}

func max(x, y int) int {
if x > y {
return x
}
return y
}

func min(x, y int) int {
if x < y {
return x
}
return y
}

const (
backOffRateLimit = 5
maxBackOffDuration = 10
Expand Down

0 comments on commit 697bca3

Please sign in to comment.