From 4dbc56a409c0ba1b73fb30eca6f1f7cb7735cdec Mon Sep 17 00:00:00 2001 From: Nam Chu Hoai Date: Sun, 23 Oct 2022 11:04:05 -0400 Subject: [PATCH] Don't block message sends on wallet balance fetches (#1165) --- typescript/infra/scripts/helloworld/kathy.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/typescript/infra/scripts/helloworld/kathy.ts b/typescript/infra/scripts/helloworld/kathy.ts index a34ac2f3d5..77af90ed1e 100644 --- a/typescript/infra/scripts/helloworld/kathy.ts +++ b/typescript/infra/scripts/helloworld/kathy.ts @@ -221,11 +221,8 @@ async function main(): Promise { messageSendSeconds.labels({ origin, remote }).inc(0); messageReceiptSeconds.labels({ origin, remote }).inc(0); } - await Promise.all( - chains.map(async (chain) => { - await updateWalletBalanceMetricFor(app, chain); - }), - ); + + chains.map((chain) => updateWalletBalanceMetricFor(app, chain)); while (true) { currentPairingIndexGauge.set(currentPairingIndex);