mirror of https://github.com/celery/kombu.git
- Bugfix: when create a Queue object, can't create binding with Exchange object.
This commit is contained in:
parent
09bd23bbd8
commit
1fa7976e4f
|
@ -619,6 +619,9 @@ class Queue(MaybeChannelBound):
|
|||
for B in self.bindings:
|
||||
channel = channel or self.channel
|
||||
B.declare(channel)
|
||||
if(isinstance(B, Exchange)):
|
||||
B.bind(channel)
|
||||
else:
|
||||
B.bind(self, nowait=nowait, channel=channel)
|
||||
|
||||
def queue_declare(self, nowait=False, passive=False, channel=None):
|
||||
|
|
Loading…
Reference in New Issue