Skip to content

Commit 386ec91

Browse files
committed
Remove the cap
1 parent 6e78bb1 commit 386ec91

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

httpclient/api_client.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import (
2222
"golang.org/x/time/rate"
2323
)
2424

25-
const maxAllowedBurst = 5
26-
2725
type RequestVisitor func(*http.Request) error
2826

2927
type ClientConfig struct {
@@ -133,9 +131,6 @@ func NewApiClient(cfg ClientConfig) *ApiClient {
133131
}
134132

135133
burst := int(rateLimit)
136-
if burst > maxAllowedBurst {
137-
burst = maxAllowedBurst
138-
}
139134
if burst < 1 {
140135
burst = 1
141136
}

0 commit comments

Comments
 (0)