Skip to content

Commit

Permalink
Debug breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed May 27, 2024
1 parent 3d6ae09 commit 11e751d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/amqp/Subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ function Subscription(broker, vhost, subscriptionConfig, counter) {
session._incrementUnacknowledgeMessageCount(message.fields.consumerTag);

decorateWithRoutingHeaders(message);
if (immediateNack(message)) return {
if (immediateNack(message)) {
debug('Immediately nacking message: %s from queue: %s', message.properties.messageId, config.queue);
ackOrNack(session, message, true);
return;
}

decorateWithRedeliveries(message, (err) => {
Expand Down

0 comments on commit 11e751d

Please sign in to comment.