Skip to content
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

Allow multiple routing key bindings #39

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

MohamedMMahfouz
Copy link
Contributor

No description provided.

@MohamedMMahfouz MohamedMMahfouz force-pushed the allow-multiple-routing-keys-binding branch 4 times, most recently from 33e64b0 to d5eae8b Compare November 7, 2023 13:50
@MohamedMMahfouz MohamedMMahfouz force-pushed the allow-multiple-routing-keys-binding branch from d5eae8b to fb285e0 Compare November 7, 2023 13:51
@MohamedMMahfouz MohamedMMahfouz marked this pull request as ready for review November 7, 2023 13:54
@brerx
Copy link
Contributor

brerx commented Nov 7, 2023

@mblumtritt I'd like to have your opinion on the interface change. Can we do it in a less breaking way?

@brerx brerx requested a review from mblumtritt November 7, 2023 14:12
README.md Outdated Show resolved Hide resolved
def self.configure(opts = {})
self.queue = opts.fetch(:queue)
self.exchange = opts.fetch(:exchange)
self.routing_key = opts.fetch(:routing_key)
self.routing_keys = opts.fetch(:routing_keys)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can keep backward compatibility:

routing_keys = opts[:routing_keys] || []
routing_keys << opts[:routing_key] if opts.key?(:routing_key)
self.routing_keys = routing_keys

But since the attribute also changed I would go with the :routing_keys.

Co-authored-by: Mike Blumtritt <[email protected]>
@MohamedMMahfouz MohamedMMahfouz merged commit 6ba3be0 into main Nov 8, 2023
6 checks passed
@MohamedMMahfouz MohamedMMahfouz deleted the allow-multiple-routing-keys-binding branch November 8, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants