Browse Source

Parallelize pushtx status refresh calls

umbrel
Pavel Ševčík 4 years ago
parent
commit
de9753446f
No known key found for this signature in database GPG Key ID: D3B8A90B4072D9DB
  1. 3
      pushtx/status.js

3
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 {

Loading…
Cancel
Save