Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit f57e932

Browse files
committed
Async batch fix
1 parent 6fd908d commit f57e932

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/KeyValueStore.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,13 @@ class KeyValueStore extends Store {
9090
},
9191
commit: async () => { // eslint-disable-line require-await
9292
//Future add support for multiples operations per oplog entry.
93-
puts.forEach(v => {
93+
for(var v of puts) {
9494
await this.put(v[0], v[1])
95-
})
95+
}
9696
puts = []
97-
98-
dels.forEach(key => {
97+
for(var v of dels) {
9998
await this.del(key)
100-
})
99+
}
101100
dels = []
102101
}
103102
}

0 commit comments

Comments
 (0)