File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ func (a *AdaptiveMode) IsErrorRetryable(err error) bool {
93
93
}
94
94
95
95
// MaxAttempts returns the maximum number of attempts that can be made for
96
- // a attempt before failing. A value of 0 implies that the attempt should
96
+ // an attempt before failing. A value of 0 implies that the attempt should
97
97
// be retried until it succeeds if the errors are retryable.
98
98
func (a * AdaptiveMode ) MaxAttempts () int {
99
99
return a .retryer .MaxAttempts ()
@@ -127,7 +127,7 @@ func (a *AdaptiveMode) GetInitialToken() (releaseToken func(error) error) {
127
127
128
128
// GetAttemptToken returns the attempt token that can be used to rate limit
129
129
// attempt calls. Will be used by the SDK's retry package's Attempt
130
- // middleware to get a attempt token prior to calling the temp and releasing
130
+ // middleware to get an attempt token prior to calling the temp and releasing
131
131
// the attempt token after the attempt has been made.
132
132
func (a * AdaptiveMode ) GetAttemptToken (ctx context.Context ) (func (error ) error , error ) {
133
133
for {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ type Retryer interface {
49
49
IsErrorRetryable (error ) bool
50
50
51
51
// MaxAttempts returns the maximum number of attempts that can be made for
52
- // a attempt before failing. A value of 0 implies that the attempt should
52
+ // an attempt before failing. A value of 0 implies that the attempt should
53
53
// be retried until it succeeds if the errors are retryable.
54
54
MaxAttempts () int
55
55
@@ -66,7 +66,7 @@ type Retryer interface {
66
66
GetInitialToken () (releaseToken func (error ) error )
67
67
}
68
68
69
- // RetryerV2 is an interface to determine if a given error from a attempt
69
+ // RetryerV2 is an interface to determine if a given error from an attempt
70
70
// should be retried, and if so what backoff delay to apply. The default
71
71
// implementation used by most services is the retry package's Standard type.
72
72
// Which contains basic retry logic using exponential backoff.
You can’t perform that action at this time.
0 commit comments