Don't block message sends on wallet balance fetches (#1165)

0.5.1
Nam Chu Hoai 2 years ago committed by GitHub
parent f93fb44b4c
commit 4dbc56a409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      typescript/infra/scripts/helloworld/kathy.ts

@ -221,11 +221,8 @@ async function main(): Promise<boolean> {
messageSendSeconds.labels({ origin, remote }).inc(0); messageSendSeconds.labels({ origin, remote }).inc(0);
messageReceiptSeconds.labels({ origin, remote }).inc(0); messageReceiptSeconds.labels({ origin, remote }).inc(0);
} }
await Promise.all(
chains.map(async (chain) => { chains.map((chain) => updateWalletBalanceMetricFor(app, chain));
await updateWalletBalanceMetricFor(app, chain);
}),
);
while (true) { while (true) {
currentPairingIndexGauge.set(currentPairingIndex); currentPairingIndexGauge.set(currentPairingIndex);

Loading…
Cancel
Save