From 0a9bd1e242a57a7181f809c3c950732fc2c41651 Mon Sep 17 00:00:00 2001 From: Mohamed Hassen Mami Date: Wed, 25 Jan 2023 13:50:13 +0100 Subject: [PATCH] Revert "deactivate volume tracking" - important for legacy This reverts commit 5ad29f98d5da17c6dfe13fe84be04e6aaa0a4644. --- src/app.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/app.ts b/src/app.ts index fc27337f..dac91ee8 100644 --- a/src/app.ts +++ b/src/app.ts @@ -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) {