Skip to content

Conversation

@kneekey23
Copy link
Contributor

@kneekey23 kneekey23 commented Nov 15, 2021

CorrespondingPr:
smithy-lang/smithy-swift#389

Issue #

Closes #497

Conventional Commits

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

Comment on lines +30 to +32
val output = MiddlewareShapeUtils.outputSymbol(symbolProvider, model, op)
val outputError = MiddlewareShapeUtils.outputErrorSymbol(op)
writer.write("$operationStackName.${middlewareStep.stringValue()}.intercept(position: ${position.stringValue()}, middleware: \$N<\$N, \$N>(${middlewareParamsString()}))", AWSClientRuntimeTypes.Core.RetryerMiddleware, output, outputError)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's interesting that we now need to pass these in -- is this because we are now throwing specific exceptions in the Retryer's implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

previously error type was passed throughout the middleware, now since it doesn't have to be since everything is async throws the middlewares that throw the specific type of error have to know about it thus we have to pass it in as a generic.

@kneekey23
Copy link
Contributor Author

This PR is blocked by a swift compiler bug on Linux reported here: https://bugs.swift.org/browse/SR-15659
Apple will prioritize this bug in January for us.

@kneekey23
Copy link
Contributor Author

Update here for anyone following this PR, apple will do a release end of Jan/early Feb and once that happens, this PR will be merged in and released! https://forums.swift.org/t/development-open-for-swift-5-5-3-for-linux-and-windows/54553

Copy link
Contributor

@wooj2 wooj2 left a comment

Choose a reason for hiding this comment

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

lgtm!

@kneekey23 kneekey23 force-pushed the feat/async branch 3 times, most recently from bb4e525 to c9349e3 Compare February 7, 2022 18:05
@kneekey23 kneekey23 requested a review from aajtodd February 7, 2022 18:08
@kneekey23 kneekey23 force-pushed the feat/async branch 2 times, most recently from cabcb49 to 570918c Compare February 9, 2022 16:22
@kneekey23 kneekey23 merged commit da74dc6 into main Feb 16, 2022
@kneekey23 kneekey23 deleted the feat/async branch February 16, 2022 19:17
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.

Refactor entire SDK to be async

3 participants