From de9753446fcd96c8cf79e9d5e01e9ed7db794937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0ev=C4=8D=C3=ADk?= Date: Thu, 1 Apr 2021 23:05:30 +0200 Subject: [PATCH] Parallelize pushtx status refresh calls --- pushtx/status.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pushtx/status.js b/pushtx/status.js index 918bfb0..ec60a0e 100644 --- a/pushtx/status.js +++ b/pushtx/status.js @@ -75,8 +75,7 @@ class Status { this.status.push.count = this.stats.count try { - await this._refreshNetworkInfo() - await this._refreshBlockchainInfo() + await Promise.all([this._refreshNetworkInfo(), this._refreshBlockchainInfo()]) } catch (e) { Logger.error(e, 'PushTx : Status.getCurrent() : Error') } finally {