Skip to content

Commit

Permalink
Fix rabbitmq exchange config
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez committed Dec 17, 2024
1 parent 31a60e9 commit e2a2ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/datasources/queue/queue_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def _connect(self, loop: AbstractEventLoop) -> None:

channel = await self._connection.channel()
self._exchange = await channel.declare_exchange(
settings.RABBITMQ_AMQP_EXCHANGE, ExchangeType.FANOUT
settings.RABBITMQ_AMQP_EXCHANGE, ExchangeType.FANOUT, durable=True
)
self._events_queue = await channel.declare_queue(
settings.RABBITMQ_DECODER_EVENTS_QUEUE_NAME, durable=True
Expand Down
2 changes: 1 addition & 1 deletion app/tests/datasources/queue/test_queue_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def test_consume(self):
message = "Test message"
channel = await self.provider._connection.channel()
exchange = await channel.declare_exchange(
settings.RABBITMQ_AMQP_EXCHANGE, aio_pika.ExchangeType.FANOUT
settings.RABBITMQ_AMQP_EXCHANGE, aio_pika.ExchangeType.FANOUT, durable=True
)

await exchange.publish(
Expand Down

0 comments on commit e2a2ba9

Please sign in to comment.