@platform-x/hep-message-broker-client 1.1.23 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -521,7 +521,7 @@ class MessageBroker {
|
|
|
521
521
|
this.channel.ack(message);
|
|
522
522
|
}
|
|
523
523
|
else {
|
|
524
|
-
if (retryCount
|
|
524
|
+
if (retryCount >= maxRetries) {
|
|
525
525
|
logger_1.Logger.error('Max retries reached. Sending message to Dead Letter Queue.', 'consumeMessage');
|
|
526
526
|
yield this.sendToDeadLetterQueue({ message: data, attempt: retryCount });
|
|
527
527
|
if (typeof classInstance[consumerErrorHandler] === 'function') {
|