-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor message sending interface to be a coroutine (#497)
* Refactor message sending interface to be a coroutine * Use gather to wait on some messages simultaneously * Clean up imports * Call gather correctly * Check results for exceptions * Make abort() a coroutine * Make report_dirties a coroutine so that messages are guaranteed to be sent in order * Add test to verify that ping message is sent * Refactor report dirty interval using aiocron style timer * Refactor a few other unnecessary uses of asyncio.ensure_future * Clean up timer * Revert geoip service change * All commands must be coroutines, added tests for lobbyconnection error conditions * Adjust tests so they actually work * Add test for verifying that your foes don't see your games * Add test for verifying that only your friends can see games with 'friends' visibility state * Make command_pong a coroutine
- Loading branch information
Showing
27 changed files
with
610 additions
and
383 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
Oops, something went wrong.