Skip to content

Commit

Permalink
retry updateSignerPenAndStatus if failed
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed Mar 20, 2019
1 parent 981b673 commit 2e70b67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crawl.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ async function updateSignerPenAndStatus () {
logger.error('updateSignerAndPen %s', e)
web3 = new Web3Ws()
validator = new Validator(web3)
await sleep(10000)
return updateSignerPenAndStatus()
}
}

Expand Down

0 comments on commit 2e70b67

Please sign in to comment.