Skip to content

Commit

Permalink
set prefetch_size to 0 as its not supported by rabbitmq
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Sep 16, 2024
1 parent d610e07 commit a50f9ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion antivirus_service/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def run(self):
self.connection = pika.BlockingConnection(params)

channel = self.connection.channel()
channel.basic_qos(1, 1)
# channel.basic_qos(1, 1)
channel.basic_qos(0, 1)
channel.queue_declare(self.amqp_queue, durable=True)
channel.queue_bind(self.amqp_queue, self.exchange)
channel.basic_consume(self.amqp_queue, self._callback)
Expand Down

0 comments on commit a50f9ad

Please sign in to comment.