We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67ba11a commit 494bb52Copy full SHA for 494bb52
pkg/chunk/aws/retryer.go
@@ -4,7 +4,6 @@ import (
4
"context"
5
"time"
6
7
- "github.com/aws/aws-sdk-go/aws/client"
8
"github.com/aws/aws-sdk-go/aws/request"
9
ot "github.com/opentracing/opentracing-go"
10
otlog "github.com/opentracing/opentracing-go/log"
@@ -42,8 +41,7 @@ func (r *retryer) RetryRules(req *request.Request) time.Duration {
42
41
43
// ShouldRetry returns if the failed request is retryable.
44
func (r *retryer) ShouldRetry(req *request.Request) bool {
45
- var d client.DefaultRetryer
46
- return d.ShouldRetry(req)
+ return req.IsErrorRetryable() || req.IsErrorThrottle()
47
}
48
49
// MaxRetries is the number of times a request may be retried before
0 commit comments