Skip to content

Commit

Permalink
Revert "deactivate volume tracking" - important for legacy
Browse files Browse the repository at this point in the history
This reverts commit 5ad29f9.
  • Loading branch information
mwamedacen committed Jan 25, 2023
1 parent 78cbb49 commit 0a9bd1e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ export async function startApp() {
server = new WebServer();
await server.start(checkDependenciesHealth, stopDependencies);

// await Promise.all(
// VOLUME_TRACKER_SUPPORTED_NETWORKS.map(network => {
// if (!VOLUME_TRACKER_INIT_TIME[network]) {
// throw new Error(
// 'VolumeTracker INIT_TIME env var is missing for network ' + network,
// );
// }
// return VolumeTracker.createInstance(
// VOLUME_TRACKER_INIT_TIME[network],
// network,
// ).startIndexing();
// }),
// );
// await PoolInfo.initStartListening();
await Promise.all(
VOLUME_TRACKER_SUPPORTED_NETWORKS.map(network => {
if (!VOLUME_TRACKER_INIT_TIME[network]) {
throw new Error(
'VolumeTracker INIT_TIME env var is missing for network ' + network,
);
}
return VolumeTracker.createInstance(
VOLUME_TRACKER_INIT_TIME[network],
network,
).startIndexing();
}),
);
await PoolInfo.initStartListening();

logger.info(`Started app (pid=${process.pid})`);
} catch (e) {
Expand Down

0 comments on commit 0a9bd1e

Please sign in to comment.