Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
slow down retry on ledger-client errors
Browse files Browse the repository at this point in the history
auditor: @diracdeltas
  • Loading branch information
mrose17 committed Aug 30, 2016
1 parent 0137b52 commit 551a5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ var callback = (err, result, delayTime) => {
console.log('ledger client error(1): ' + JSON.stringify(err, null, 2) + (err.stack ? ('\n' + err.stack) : ''))
if (!client) return

if (typeof delayTime === 'undefined') delayTime = random.randomInt({ min: 1, max: 10 * msecs.minute })
if (typeof delayTime === 'undefined') delayTime = random.randomInt({ min: 1 * msecs.minute, max: 10 * msecs.minute })
}

if (!result) return run(delayTime)
Expand Down

1 comment on commit 551a5f6

@diracdeltas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.