We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e78bb1 commit 386ec91Copy full SHA for 386ec91
1 file changed
httpclient/api_client.go
@@ -22,8 +22,6 @@ import (
22
"golang.org/x/time/rate"
23
)
24
25
-const maxAllowedBurst = 5
26
-
27
type RequestVisitor func(*http.Request) error
28
29
type ClientConfig struct {
@@ -133,9 +131,6 @@ func NewApiClient(cfg ClientConfig) *ApiClient {
133
131
}
134
132
135
burst := int(rateLimit)
136
- if burst > maxAllowedBurst {
137
- burst = maxAllowedBurst
138
- }
139
if burst < 1 {
140
burst = 1
141
0 commit comments