mirror of https://github.com/celery/kombu.git
Added Consumer.revive
This commit is contained in:
parent
a59cee238c
commit
da0972ec20
|
@ -223,6 +223,11 @@ class Consumer(object):
|
|||
if self.auto_declare:
|
||||
self.declare()
|
||||
|
||||
def revive(self, channel):
|
||||
for queue in self.queues:
|
||||
queue.revive(channel)
|
||||
self.channel = channel
|
||||
|
||||
def declare(self):
|
||||
"""Declare queues, exchanges and bindings.
|
||||
|
||||
|
|
Loading…
Reference in New Issue