Skip to content
Snippets Groups Projects
Commit 50afae24 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

1.2.2 bugfix release

parent 563ad6f9
No related branches found
No related tags found
No related merge requests found
# v1.2.2 # v1.2.2
* _TBA_ * bugfix release: don't bind if queue is topic
# v1.2.1 # v1.2.1
......
__version__ = '1.2.2_a1' __version__ = '1.2.2'
...@@ -408,14 +408,15 @@ class Consumer(Channeler): ...@@ -408,14 +408,15 @@ class Consumer(Channeler):
# We need any form of binding. # We need any form of binding.
if self.queue.exchange is not None: if self.queue.exchange is not None:
self.method_and_watch( if self.queue.exchange.type != 'topic':
QueueBind( self.method_and_watch(
self.queue.name, QueueBind(
self.queue.exchange.name.encode('utf8'), self.queue.name,
b'', False, []), self.queue.exchange.name.encode('utf8'),
QueueBindOk, b'', False, []),
self.on_setup QueueBindOk,
) self.on_setup
)
else: else:
# default exchange, pretend it was bind ok # default exchange, pretend it was bind ok
self.on_setup(QueueBindOk()) self.on_setup(QueueBindOk())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment