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

change runtime config from constant to provider functions #381

Merged
merged 2 commits into from
Jul 21, 2021

Conversation

AllanZhengYP
Copy link
Contributor

Issue #, if available:
Related to aws/aws-sdk-js-v3#2574

Description of changes:
See: aws/aws-sdk-js-v3#2574

This change makes runtime default configs as a function instead of constant. As a result, different client instance won't share the same runtime config (e.g. HTTP handlers). This change also uses inline nullish coalescing in replace of fully loaded default configuration. This change makes sure the SDK won't load default value/provider at all when corresponding custom config is supplied.

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 a team as a code owner July 13, 2021 06:19
writer.onSection("customizations", original -> {
writer.indent();
writer.indent().onSection("customizations", original -> {
// writer.indent();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove line

Suggested change
// writer.indent();

@AllanZhengYP AllanZhengYP merged commit e1cf653 into smithy-lang:main Jul 21, 2021
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
…g#381)

* make runtime config functional

* assign configs not defined in runtime config
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.

2 participants