Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca7726c

Browse files
author
Miquel Fontana
committed
issues/57867 single line ternary and add in changelog new argument
1 parent c6c8fbc commit ca7726c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Symfony/Component/Messenger/Bridge/Amqp/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
7.4
5+
---
6+
7+
* Add option `delay[daily_delay_queues]` in the transport definition
8+
49
7.1
510
---
611

src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,7 @@ private function createDelayQueue(int $delay, ?string $routingKey, bool $isRetry
395395
$queue = $this->amqpFactory->createQueue($this->channel());
396396
$queue->setName($this->getRoutingKeyForDelay($delay, $routingKey, $isRetryAttempt));
397397
$queue->setFlags(\AMQP_DURABLE);
398-
$queueExpirationBase = ($this->connectionOptions['delay']['daily_delay_queues'] ?? false) ?
399-
24 * 60 * 60 * 1000 : 0;
398+
$queueExpirationBase = ($this->connectionOptions['delay']['daily_delay_queues'] ?? false) ? 24 * 60 * 60 * 1000 : 0;
400399
$queue->setArguments(array_merge([
401400
'x-message-ttl' => $delay,
402401
// delete the delay queue 10 seconds after the message expires

0 commit comments

Comments
 (0)