-
Notifications
You must be signed in to change notification settings - Fork 0
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
III-4841 Fix queue routing keys #214
Merged
Merged
Conversation
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
There has only been one implementation for years anyway
It was only protected because it was abstract before
This reduces the number of properties and makes it easier to see at a glance what is happening in the constructor
And use the same order of methods in both the interface and the implementation
The extra check it did on the return type is no longer necessary since we got return types in PHP
The $callbacks property is technically public, but marked as internal and the phpdoc mentions to use is_consuming() instead
Don't talk to your friends' friends, and more loose coupling
It should not be used directly, only as a callback on the AMQPChannel class
We can still test it by storing the callback that is sent to AMQPChannel::basic_consume() in a property in the unit tests, and then call the callback ourselves
…ndant factory The factory should make it easy in theory to create multiple consumers based on some shared services/parameters. However it's only used in one place, where we can easily pass all of those arguments directly to EventBusForwardingConsumer itself
They were not shared anyway (add() was used instead of addShared())
It's copy-pasted from the abstract parent method
Since there is no one available for code review and this is a relatively urgent bugfix, I'm going to merge this without code review for now. Feel free to double-check everything when you are back @JonasVHG and/or @LucWollants , we can always make another PR for any comments. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed
#
routing key, which resulted in all messages being sent to both the API and CLI queues.Changed
Ticket: https://jira.uitdatabank.be/browse/III-4841