Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6ed35b6

Browse filesBrowse files
kvrushifanicolas-grekas
authored andcommitted
[Messenger] [AMQP] Throw exception on nack callback
1 parent 1ae24df commit 6ed35b6
Copy full SHA for 6ed35b6

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php
+3-2Lines 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('Message publication failed due to a negative acknowledgment (nack) from the broker.');
521522
}
522523
);
523524
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.