no set durable
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2020-09-18 14:56:57 +02:00
parent d9d0dcdbaf
commit 50391d8b2f
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 1 additions and 3 deletions

View File

@ -44,9 +44,7 @@ def setup_rabbit() -> None:
socket_timeout=5))
channel = connection.channel()
channel.exchange_declare(exchange=config.RABBIT_EXCHANGE,
exchange_type='fanout',
durable=True,
auto_delete=False)
exchange_type='fanout')
queue = channel.queue_declare(durable=True, auto_delete=True, queue=uuid.uuid4().urn.split(':')[2],
exclusive=True).method.queue
channel.queue_bind(exchange=config.RABBIT_EXCHANGE, queue=queue)