Allow priceUpdater to run without storing to database

This commit is contained in:
softsimon
2023-07-30 15:30:23 +09:00
parent 83a487ecae
commit af4d0b4d3f
3 changed files with 6 additions and 5 deletions

View File

@@ -194,6 +194,7 @@ class Server {
await memPool.$updateMempool(newMempool, pollRate);
}
indexer.$run();
priceUpdater.$run();
// rerun immediately if we skipped the mempool update, otherwise wait POLL_RATE_MS
const elapsed = Date.now() - start;