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

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Throw exception on nack confirm callback
  • Loading branch information
Nico Müller committed Jan 12, 2024
commit a46f12467100ba6012946422ca53afbfbd56535d
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

use Symfony\Component\Messenger\Exception\InvalidArgumentException;
use Symfony\Component\Messenger\Exception\LogicException;
use Symfony\Component\Messenger\Exception\RuntimeException;
use Symfony\Component\Messenger\Exception\SendingMessageFailedException;

/**
* An AMQP connection.
Expand Down Expand Up @@ -493,7 +495,7 @@ public function channel(): \AMQPChannel
$this->amqpChannel->confirmSelect();
$this->amqpChannel->setConfirmCallback(
static fn (): bool => false,
static fn (): bool => false
static fn (): bool => throw new RuntimeException('Confirm calls back with nack'),
);
}

Expand Down