Skip to content

Commit

Permalink
Fix protocol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed May 9, 2024
1 parent 9543c67 commit c6273ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ object ClientRuntimeTypes {
val SDKLogLevel = runtimeSymbol("SDKLogLevel")
val ClientLogMode = runtimeSymbol("ClientLogMode")
val IdempotencyTokenGenerator = runtimeSymbol("IdempotencyTokenGenerator")
val DefaultRetryStrategy = runtimeSymbol("DefaultRetryStrategy")
val DefaultRetryErrorInfoProvider = runtimeSymbol("DefaultRetryErrorInfoProvider")
val DefaultSDKRuntimeConfiguration = runtimeSymbol("DefaultSDKRuntimeConfiguration")
val DateFormatter = runtimeSymbol("DateFormatter")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class RetryMiddleware(

override fun render(ctx: ProtocolGenerator.GenerationContext, writer: SwiftWriter, op: OperationShape, operationStackName: String) {
if (ctx.settings.useInterceptors) {
writer.write("builder.retryStrategy(\$N(options: config.retryStrategyOptions))", ClientRuntimeTypes.Core.DefaultRetryStrategy)
writer.addImport(SwiftDependency.SMITHY_RETRIES.target)
writer.write("builder.retryStrategy(\$N(options: config.retryStrategyOptions))", SmithyRetriesTypes.DefaultRetryStrategy)
writer.write("builder.retryErrorInfoProvider(\$N.errorInfo(for:))", retryErrorInfoProviderSymbol)
} else {
val output = MiddlewareShapeUtils.outputSymbol(symbolProvider, model, op)
Expand Down

0 comments on commit c6273ac

Please sign in to comment.