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

Skip to content

Commit 1be34ce

Browse files
committed
fix: Throw exception on nack'ed message
1 parent 1ae24df commit 1be34ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\Component\Messenger\Exception\InvalidArgumentException;
1515
use Symfony\Component\Messenger\Exception\LogicException;
16+
use Symfony\Component\Messenger\Exception\TransportException;
1617

1718
/**
1819
* An AMQP connection.
@@ -516,8 +517,8 @@ public function channel(): \AMQPChannel
516517
static function (): bool {
517518
return false;
518519
},
519-
static function (): bool {
520-
return false;
520+
static function () {
521+
throw new TransportException('Confirm calls back with nack.');
521522
}
522523
);
523524
}

0 commit comments

Comments
 (0)