-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fanout exchange #33
Fanout exchange #33
Conversation
Previously, publishing a message to an exchange (either through the mock client, or through a "real" client connected to the mock server) would not result in that message being added to any queues bound to the exchange. Testing queues and exchanges were totally separate. E.g. for the same effect you would have to have a "real" client publish to an exchange, and have the mock client publish to an associated queue. This automatically adds any messages published to an exchange to any queues bound to that exchange (this assumes direct routing--fanout will be added in a follow-up).
declare_queue now actually does something, in terms of ensuring that the queue exists new queues are automatically bound to the default exchange
…f the same message with fanout exchanges
… message regardless of routing key
Hi @tsv1, |
Hi! Let's remove Python 3.7, as it's no longer supported by the PSF. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #33 +/- ##
==========================================
- Coverage 94.61% 94.32% -0.29%
==========================================
Files 14 14
Lines 594 617 +23
Branches 71 78 +7
==========================================
+ Hits 562 582 +20
- Misses 16 17 +1
- Partials 16 18 +2 ☔ View full report in Codecov by Sentry. |
@moyiz thank you for your contribution! |
Hi,
Great project.
In this PR I have rebased and fixed the changes that were introduced in these older ones:
#10
#23
I also changed
Storage._history
from{msg_id: msg}
mapping to[(msg_id, msg), ...]
list to better support multiple copies of messages by fanout exchanges since they have the same ID.Thanks.