-
Notifications
You must be signed in to change notification settings - Fork 222
Connection builder simplification #276
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
Conversation
Now it is no longer required to make and manage a HostResolver, EventLoopGroup, or ClientBootstrap. Also added singleton versions of all three classes and adjusted constructors to make passing a ClientBootstrap optional in many cases. Requires changes to the Python crt repository to function correctly.
…on-v2 into ConnectionBuilderSimplification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR seems good to me. Just need to wait for release of awslabs/aws-crt-python#334.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got compile error with using_static_defaults. I think it was deprecated, is it? And the current main has updated crt to 0.13.5, we might want to do that as well.
Yeah, I think it is deprecated. I'll update this PR and the samples to use the latest changes (and make sure it compiles) first thing tomorrow morning 👍 |
…on-v2 into ConnectionBuilderSimplification
Thanks for the review! I fixed the issue with using_static_defaults, merged the latest version of master, and now all the tests pass 👍 |
Thanks for the review! Merging into |
Description of changes:
Adjusted samples to use the changes in this PR: awslabs/aws-crt-python#334
This makes the code much smaller and removes the requirement to create and manage a HostResolver, EventLoopGroup, and ClientBootstrap to create a connection.
Requires changes the changes in the PR to function.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.