Skip to content

Commit

Permalink
Merge pull request #671 from dvdknaap/fixNotSendingAckMessages
Browse files Browse the repository at this point in the history
check for type
  • Loading branch information
mihaileu authored Nov 11, 2021
2 parents 63d047d + 457e621 commit 9829eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RabbitMq/BatchConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private function handleProcessFlag($deliveryTag, $processFlag)
} elseif ($processFlag === ConsumerInterface::MSG_REJECT) {
// Reject and drop
$this->getMessageChannel($deliveryTag)->basic_reject($deliveryTag, false);
} elseif ($processFlag == ConsumerInterface::MSG_ACK_SENT) {
} elseif ($processFlag === ConsumerInterface::MSG_ACK_SENT) {
// do nothing, ACK should be already sent
} else {
// Remove message from queue only if callback return not false
Expand Down

0 comments on commit 9829eb0

Please sign in to comment.