Skip to content

Commit

Permalink
increase requeue attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsechyn authored and andris9 committed Feb 21, 2020
1 parent 964199b commit 6363bff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/smtp-pool/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,16 +445,18 @@ class SMTPPool extends EventEmitter {
};

_requeueEntryOnConnectionClose(connection) {
this.logger.debug(
connection.queueEntry.requeueAttempts = connection.queueEntry.requeueAttempts + 1;
this.logger.debug(
{
tnx: 'pool',
cid: connection.id,
messageId: connection.queueEntry.messageId,
action: 'requeue'
},
'Re-queued message <%s> for #%s',
'Re-queued message <%s> for #%s. Attempt: #%s',
connection.queueEntry.messageId,
connection.id
connection.id,
connection.queueEntry.requeueAttempts;
);
this._queue.unshift(connection.queueEntry);
connection.queueEntry = false;
Expand Down

0 comments on commit 6363bff

Please sign in to comment.