Skip to content

Commit

Permalink
check for type
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdknaap committed Nov 11, 2021
1 parent 63d047d commit 457e621
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 457e621

Please sign in to comment.