fix(bootstrap): parallel bootstrap saving

This commit is contained in:
Alexey Kasyanchuk 2018-07-17 09:17:15 +03:00
parent 0c16bead45
commit 5a2a6a5db5

View File

@ -872,9 +872,10 @@ setInterval(() => {
})) }))
}) })
await Promise.all([
await saveBootstrapPeers('api.myjson.com', '/bins/1e5rmh') saveBootstrapPeers('api.myjson.com', '/bins/1e5rmh'),
await saveBootstrapPeers('jsonblob.com', '/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa') saveBootstrapPeers('jsonblob.com', '/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa')
])
} }
} }