Skip to content

Commit

Permalink
Don't throw in the block callback or you stall
Browse files Browse the repository at this point in the history
  • Loading branch information
epheph committed Dec 29, 2020
1 parent 93775c4 commit 9f0d985
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ async function main() {
return
}
bestCrossedMarkets.forEach(Arbitrage.printCrossedMarket);
await arbitrage.takeCrossedMarkets(bestCrossedMarkets, blockNumber);
healthcheck()
arbitrage.takeCrossedMarkets(bestCrossedMarkets, blockNumber).then(healthcheck).catch(console.error)
})
}

Expand Down

0 comments on commit 9f0d985

Please sign in to comment.