Skip to content

Commit

Permalink
Added prefetch count
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Martins committed Aug 10, 2018
1 parent 8674039 commit 6ab33f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion message_queue/__init__.py
@@ -1,4 +1,4 @@
__version__ = '0.2.2'
__version__ = '0.2.3'

from message_queue.logger import *

Expand Down
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 6ab33f4

Please sign in to comment.