Skip to content

Commit

Permalink
Fix x-delay header
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeLe authored Dec 30, 2021
1 parent 1a2bdca commit 1c43df1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RabbitMqDelayPluginDelayStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function delayMessage(AmqpContext $context, AmqpDestination $dest, AmqpMe
{
$delayMessage = $context->createMessage($message->getBody(), $message->getProperties(), $message->getHeaders());
$delayMessage->setProperty('x-delay', (int) $delay);
$delayMessage->setHeader('x-delay', $delay);
$delayMessage->setRoutingKey($message->getRoutingKey());

if ($dest instanceof AmqpTopic) {
Expand Down

0 comments on commit 1c43df1

Please sign in to comment.