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,7 +619,10 @@ class Queue(MaybeChannelBound):
|
||||||
for B in self.bindings:
|
for B in self.bindings:
|
||||||
channel = channel or self.channel
|
channel = channel or self.channel
|
||||||
B.declare(channel)
|
B.declare(channel)
|
||||||
B.bind(self, nowait=nowait, channel=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):
|
def queue_declare(self, nowait=False, passive=False, channel=None):
|
||||||
"""Declare queue on the server.
|
"""Declare queue on the server.
|
||||||
|
|
Loading…
Reference in New Issue