Skip to content
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

feat: Make RetryStrategyOptions initializer public #571

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Conversation

jbelkins
Copy link
Contributor

@jbelkins jbelkins commented Jul 7, 2023

Description of changes

Provide a public initializer for RetryStrategyOptions so that the AWS SDK may customize retry parameters.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jbelkins jbelkins requested a review from waahm7 July 10, 2023 16:11
Comment on lines +19 to +21
public init() {
self.init(options: ExponentialBackoffStrategyOptions())
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not keep the optional options as paramter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExponentialBackoffStrategyOptions is not (yet) public. Not much point in making it public right now since there's no other backoff strategy available and we'd prefer that customers use our settings.

We may revisit this in the future.

@jbelkins jbelkins merged commit 236a2d1 into main Jul 31, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants