-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws/client: Adds configurations to the default retryer #2830
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clicked the approve too soon sorry. Change looks good, with a couple suggestions.
@@ -21,40 +22,103 @@ import ( | |||
// // This implementation always has 100 max retries | |||
// func (d retryer) MaxRetries() int { return 100 } | |||
type DefaultRetryer struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can update the doc string for this type to be more concise. The new delay members should have doc strings added to them that describe their default behavior as automatically being set of their value is 0.
Exposes members of the default retryer. Adds NoOpRetryer to support no retry behavior. Updates the underlying logic used by the default retryer to calculate jittered delay for retry.
Fixes #2829