blockstore: await for level block store writes

This commit is contained in:
Braydon Fuller 2019-02-27 16:14:28 -08:00
parent 0609ce72fc
commit 620f21d6f5
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4

View File

@ -66,7 +66,7 @@ class LevelBlockStore extends AbstractBlockStore {
*/
async write(hash, data) {
this.db.put(layout.b.encode(hash), data);
return this.db.put(layout.b.encode(hash), data);
}
/**