Skip to content

Commit a9702b6

Browse files
committed
Default RateLimiter is 'ratelimit.None'.
1 parent 4797c96 commit a9702b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aws_config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ func resolveRetryer(ctx context.Context, tokenBucketRateLimiterCapacity int, aws
215215
standardOptions = append(standardOptions, func(so *retry.StandardOptions) {
216216
so.RateLimiter = ratelimit.NewTokenRateLimit(uint(tokenBucketRateLimiterCapacity))
217217
})
218+
} else {
219+
standardOptions = append(standardOptions, func(so *retry.StandardOptions) {
220+
so.RateLimiter = ratelimit.None
221+
})
218222
}
219223

220224
switch retryMode {

0 commit comments

Comments
 (0)