blockstore: await for level block store writes
This commit is contained in:
parent
0609ce72fc
commit
620f21d6f5
@ -66,7 +66,7 @@ class LevelBlockStore extends AbstractBlockStore {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
async write(hash, data) {
|
async write(hash, data) {
|
||||||
this.db.put(layout.b.encode(hash), data);
|
return this.db.put(layout.b.encode(hash), data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user