Skip to content

Commit

Permalink
fix: revert re-queue of messages and push to dead letter (#121)
Browse files Browse the repository at this point in the history
* feat: requeue verify jobs instead of deadlettering

* fix: revert requeue and push to dead letter
  • Loading branch information
pritamstyz4ever authored Jul 8, 2021
1 parent afb63db commit 4b64df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const onRetryMessage = async (data) => {
} else {
logger.info(`err: ${error}, don't acknowledge, retried ` +
`${retryCount}(${messageReprocessLimit}) for ${job}`);
channelWrapper.nack(data, false, true); // requeue it instead of deadlettering
channelWrapper.nack(data, false, false);
}
thread.kill();
})
Expand Down

0 comments on commit 4b64df0

Please sign in to comment.