Added Consumer.revive

This commit is contained in:
Ask Solem 2010-10-25 13:27:02 +02:00
parent a59cee238c
commit da0972ec20
1 changed files with 5 additions and 0 deletions

View File

@ -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.