Skip to content

Commit

Permalink
Merge pull request #6 from ingresse/feature/exchange-prefetch-count
Browse files Browse the repository at this point in the history
Prefetch Count
  • Loading branch information
arthurmartins committed Aug 10, 2018
2 parents 8674039 + 69823b6 commit 2db918c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions message_queue/adapters/amqp_adapter.py
Expand Up @@ -212,4 +212,5 @@ def subscribe(self, exchange, queue, exchange_type="fanout", **kwargs):
arguments=kwargs.get('arguments', None)
)

self.channel.basic_qos(prefetch_count=kwargs.get('prefetch_count', 1))
self.channel.queue_bind(exchange=exchange, queue=self.queue)

0 comments on commit 2db918c

Please sign in to comment.