Skip to content

Commit b83d989

Browse files
committed
Add merging of declare_queue_kwargs["arguments"]
1 parent 1c834a1 commit b83d989

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

taskiq_aio_pika/broker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ async def declare_queues(
193193
}
194194
if self._max_priority is not None:
195195
args["x-max-priority"] = self._max_priority
196+
if "arguments" in self._declare_queues_kwargs:
197+
args.update(self._declare_queues_kwargs["arguments"])
198+
del self._declare_queues_kwargs["arguments"]
196199
queue = await channel.declare_queue(
197200
self._queue_name,
198201
arguments=args,

0 commit comments

Comments
 (0)