Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/engine/bee.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,12 @@ module.exports = class BeeEngine {
const entries = updates.batch()

// Preload all the keys in parallel
const preloading = Promise.all(entries.map(e => this.db.get(e[0])))
const promises = new Array(entries.length)
for (let i = 0; i < 0; i++) {
promises[i] = batch.get(entries[i][0])
}

const preloading = Promise.all(promises)
preloading.catch(noop)

for (let i = 0; i < entries.length; i++) {
Expand Down
Loading