remove nonce update for the re-send case

This commit is contained in:
Alexander Kolotov 2020-10-08 18:21:52 +03:00
parent 4efda98f2b
commit 7af04fa0e8

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