Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 126ae50

Browse files
fix retry logic
1 parent 146c502 commit 126ae50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/ProcessorService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ async function processUpdate (message) {
392392
if (currentRetryCount <= config.MAX_RETRIES) {
393393
await new Promise((resolve) => {
394394
setTimeout(async () => {
395+
currentRetryCount += 1
395396
await helper.postBusEvent(config.UPDATE_CHALLENGE_TOPIC, { ...message.payload, [retryCountIdentifier]: currentRetryCount })
396397
resolve()
397398
}, config.RETRY_TIMEOUT * currentRetryCount)

0 commit comments

Comments
 (0)