mirror of https://github.com/celery/kombu.git
Removes deprecated Consumer.add_queue_from_dict
This commit is contained in:
parent
ec18cf8144
commit
4efd57eae9
|
@ -199,7 +199,7 @@ class ConsumerSet(messaging.Consumer):
|
||||||
return self.purge()
|
return self.purge()
|
||||||
|
|
||||||
def add_consumer_from_dict(self, queue, **options):
|
def add_consumer_from_dict(self, queue, **options):
|
||||||
return self.add_queue_from_dict(queue, **options)
|
return self.add_queue(Queue.from_dict(queue, **options))
|
||||||
|
|
||||||
def add_consumer(self, consumer):
|
def add_consumer(self, consumer):
|
||||||
for queue in consumer.queues:
|
for queue in consumer.queues:
|
||||||
|
|
|
@ -457,16 +457,6 @@ class Consumer(object):
|
||||||
self._queues[queue.name] = queue
|
self._queues[queue.name] = queue
|
||||||
return queue
|
return queue
|
||||||
|
|
||||||
def add_queue_from_dict(self, queue, **options):
|
|
||||||
"""This method is deprecated.
|
|
||||||
|
|
||||||
Instead please use::
|
|
||||||
|
|
||||||
consumer.add_queue(Queue.from_dict(d))
|
|
||||||
|
|
||||||
"""
|
|
||||||
return self.add_queue(Queue.from_dict(queue, **options))
|
|
||||||
|
|
||||||
def consume(self, no_ack=None):
|
def consume(self, no_ack=None):
|
||||||
"""Start consuming messages.
|
"""Start consuming messages.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue