Browse Source

Merge pull request #1451 from KhalilBellakrid/develop

Remove timeouts on coreSyncAccount calls, related issue #1446
master
Thibaut 6 years ago
committed by GitHub
parent
commit
929b11ebb5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/helpers/libcore.js

4
src/helpers/libcore.js

@ -271,7 +271,7 @@ async function scanNextAccount(props: {
const shouldSyncAccount = true // TODO: let's sync everytime. maybe in the future we can optimize.
if (shouldSyncAccount) {
await timeoutTagged('coreSyncAccount', 30000, coreSyncAccount(core, njsAccount))
await coreSyncAccount(core, njsAccount)
}
if (isUnsubscribed()) return []
@ -549,7 +549,7 @@ export async function syncAccount({
)
}
const unsub = await timeoutTagged('coreSyncAccount', 30000, coreSyncAccount(core, njsAccount))
const unsub = await coreSyncAccount(core, njsAccount)
unsub()
const query = njsAccount.queryOperations()

Loading…
Cancel
Save