-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore intended interface of
RmqThreadCommunicator
(#124)
In commit 3806a9e the requirement of the `aio-pika` dependency was updated. In adjusting the code to the changes in their API, certain methods of the `RmqThreadCommunicator` were made asynchronous. However, the whole point of the `RmqThreadCommunicator` is to shield the consumer from any async code. The changes in the interface and the tests are reverted and the implementation of `RmqThreadCommunicator` is updated to match the inter- face of the newer `aio-pika` version. Doing so actually revealed a bug in `pytray` causing the unit test `test_queue_get_next` to hang forever while waiting for the future to be set. The `pytray.LoopScheduler` was propagating a future the wrong way around: instead of the result from a thread future being passed to the asyncio future, it was doing the opposite causing the future to never be resolved. The bug is fixed in `pytray==0.3.4`.
- Loading branch information
Showing
7 changed files
with
80 additions
and
39 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