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

Missing exchange_bind implementation #140

Open
lelithium opened this issue Feb 10, 2020 · 1 comment
Open

Missing exchange_bind implementation #140

lelithium opened this issue Feb 10, 2020 · 1 comment

Comments

@lelithium
Copy link

librabbitmq does not implement exchange_bind for the Channel object. This is especially visible when using Kombu.

Versions:

  • librabbitmq==2.0.0
  • kombu==4.6.7

Bug:

from kombu import Connection, Exchange
conn = Connection("amqp://user:password@host//")
conn.transport_cls  # yields librabbitmq
Exchange("some_exchange", channel=conn.channel()).declare()
Exchange("some_exchange", channel=conn.channel()).bind_to("amq.topic", routing_key="some_key")
# raises AttributeError: 'Channel' object has no attribute 'exchange_bind'

Using pyamqp to demonstrate the expected behaviour:

from kombu import Connection, Exchange
conn = Connection("amqp://user:password@host//", transport="pyamqp")
conn.transport_cls  # yields pyamqp
Exchange("some_exchange", channel=conn.channel()).declare()
Exchange("some_exchange", channel=conn.channel()).bind_to("amq.topic", routing_key="some_key")
@thedrow
Copy link
Member

thedrow commented Feb 16, 2020

PRs welcome.

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

No branches or pull requests

2 participants