File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Sources/ClientRuntime/Config Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,11 @@ open class ClientConfigDefaultsProvider {
38
38
return RuntimeConfigType . defaultClientLogMode
39
39
}
40
40
41
- /// Returns default retry strategy options *without* referencing AWS-specific config.
42
- open class func retryStrategyOptions( maxAttempts: Int ? = nil ) -> RetryStrategyOptions {
43
- // Provide some simple fallback for non-AWS usage, e.g. a standard exponential backoff.
41
+ /// Returns default retry strategy options.
42
+ public static func backoffRetryStrategyOptions(
43
+ _ maxAttempts: Int ? = nil
44
+ ) throws -> RetryStrategyOptions {
45
+ // Provide standard exponential backoff
44
46
let attempts = maxAttempts ?? 3
45
47
return RetryStrategyOptions (
46
48
backoffStrategy: ExponentialBackoffStrategy ( ) ,
You can’t perform that action at this time.
0 commit comments