Skip to content

Commit 30a80d5

Browse files
authored
fix: change retryStrategyOptions name to avoid conflict (#902)
1 parent d224c1d commit 30a80d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Sources/ClientRuntime/Config/ClientConfigDefaultsProvider.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ open class ClientConfigDefaultsProvider {
3838
return RuntimeConfigType.defaultClientLogMode
3939
}
4040

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
4446
let attempts = maxAttempts ?? 3
4547
return RetryStrategyOptions(
4648
backoffStrategy: ExponentialBackoffStrategy(),

0 commit comments

Comments
 (0)