Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JetDrag committed Apr 24, 2024
1 parent 98faa32 commit 073e824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dramatiq/brokers/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def consume(self, queue_name, prefetch=1, timeout=5000):
Returns:
Consumer: A consumer that retrieves messages from RabbitMQ.
"""
self.declare_queue(queue_name, ensure='strict')
self.declare_queue(queue_name, ensure="strict")
return self.consumer_class(self.parameters, queue_name, prefetch, timeout)

def declare_queue(self, queue_name, *, ensure=False):
Expand Down Expand Up @@ -246,7 +246,7 @@ def declare_queue(self, queue_name, *, ensure=False):
self.emit_after("declare_delay_queue", delayed_name)

if ensure:
self._ensure_queue(queue_name, ensure=="strict")
self._ensure_queue(queue_name, ensure == "strict")

def _ensure_queue(self, queue_name, strict=False):
attempts = 1
Expand Down

0 comments on commit 073e824

Please sign in to comment.