-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Connection builder simplification (#334)
These changes make it where it's not required to create and manage a DefaultHostResolver, EventLoopGroup, or ClientBootstrap to make a connection. Instead, default singletons have been added to handle this use case. Commit log * First pass at builder simplification for Python V2 SDK * Removed left over test code created when testing builder simplification, adjusted code to fit autopep8 * Additional changes to fix formatting in io.py after first pass at builder simplification. Also surpressed the warnings on lgtm about deleting the local variables, as it is needed to delete the global singletons correctly * Fixed more Pep8 style issues with io.py after first pass at builder simplification * Removed freeing singletons manually, as they are automatically freed when garbage collected * Updated MQTT builder simplification after review * Missed a super minor code format issue and didn't think to check. Fixed it * Updated MQTT singleton test to free memory at the end and removed unused imports * Make passing a ClientBootstrap optional in MqttClient, HttpClientConnection, and rpc.ClientConnect * Fixed passing wrong parameter in test, removed unused import * Code review changes: Adjusted lock use and cleaned up code * Fixed minor mistakes in last commit * Fixed another minor mistake in test
- Loading branch information
1 parent
cc65145
commit fe9266a
Showing
9 changed files
with
146 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.