Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Geary-Layne committed Oct 30, 2024
1 parent 8a03a00 commit 27f5a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/idsse_common/idsse/common/rabbitmq_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def subscribe_to_queue(

def _setup_exch_and_queue(channel: Channel, exch: Exch, queue: Queue):
"""Setup an exchange and queue and bind them with the queue's route key(s)"""
if queue.type == 'quorum' and queue.auto_delete:
if queue.arguments['x-queue-type'] == 'quorum' and queue.auto_delete:
raise ValueError('Quorum queues can not be configured to auto delete')

_setup_exch(channel, exch)
Expand Down

0 comments on commit 27f5a95

Please sign in to comment.