Skip to content

Commit

Permalink
Fix ratelimit buffer channel design
Browse files Browse the repository at this point in the history
  • Loading branch information
aminst committed Nov 28, 2023
1 parent 332509d commit 6c66e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type RateLimit struct {
func NewRateLimit(tokensLimit int) *RateLimit {
return &RateLimit{
tokensLimit: tokensLimit,
availableTokens: make(chan struct{}, tokensLimit),
availableTokens: make(chan struct{}),
}
}

Expand Down

0 comments on commit 6c66e43

Please sign in to comment.