Skip to content

Commit

Permalink
fix(bootstrap): parallel bootstrap saving
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Jul 17, 2018
1 parent d602003 commit 908163e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/background/spider.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,9 +872,10 @@ setInterval(() => {
}))
})


await saveBootstrapPeers('api.myjson.com', '/bins/1e5rmh')
await saveBootstrapPeers('jsonblob.com', '/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa')
await Promise.all([
saveBootstrapPeers('api.myjson.com', '/bins/1e5rmh'),
saveBootstrapPeers('jsonblob.com', '/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa')
])
}
}

Expand Down

0 comments on commit 908163e

Please sign in to comment.