Skip to content

Commit

Permalink
format constants
Browse files Browse the repository at this point in the history
  • Loading branch information
LHeggy committed Mar 4, 2024
1 parent fb24e9d commit ad248e9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ import (
"golang.org/x/time/rate"
)

// last retry will wait 64 seconds
// will also listen to 'Retry-After' header

const (
rpm = 600
bucketsPerMinute = 60
maxRetries = 7
minRetryWait = 1 * time.Second
maxRetryWait = 65 * time.Second
rpm = 600

// last retry will wait 64 seconds
maxRetries = 7
minRetryWait = 1 * time.Second
maxRetryWait = 65 * time.Second
)

type RateLimitedClient struct {
Expand Down

0 comments on commit ad248e9

Please sign in to comment.