Remove nonce update for the re-send case (#470)

This commit is contained in:
Alexander Kolotov 2020-10-08 18:51:01 +03:00 committed by GitHub
parent 4efda98f2b
commit 48752e8575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -194,8 +194,10 @@ async function main({ msg, ackMsg, nackMsg, channel, scheduleForRetry, scheduleT
} }
}) })
logger.debug('Updating nonce') if (typeof nonce === 'number') {
await updateNonce(nonce) logger.debug('Updating nonce')
await updateNonce(nonce)
}
if (failedTx.length) { if (failedTx.length) {
logger.info(`Sending ${failedTx.length} Failed Tx to Queue`) logger.info(`Sending ${failedTx.length} Failed Tx to Queue`)