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

client destroy method will call SmithyClient destroy by default #156

Merged
merged 2 commits into from
Apr 7, 2020

Conversation

AllanZhengYP
Copy link
Contributor

@AllanZhengYP AllanZhengYP commented Apr 5, 2020

Currently all the clientRuntimeCustomization can have a destroy() function. But the default configs in smithy client doesn't have one.

This change will make the service client call the destroy() from smithy client. By default the SmithyClient.destroy() is an empty function. But if the requestHandler in SmithyClient has a destroy, service client will call the function when callling the destroy on the service client.

Related: aws/aws-sdk-js-v3#1081

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AllanZhengYP AllanZhengYP requested a review from kstich April 6, 2020 22:50
@kstich kstich merged commit 262ab30 into smithy-lang:master Apr 7, 2020
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
* client destroy method will call SmithyClient destroy by default

* move calling default detroy after other customizations destroy
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