We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc90884 commit 22d6a11Copy full SHA for 22d6a11
index.js
@@ -58,7 +58,7 @@ class HyperBlobsBatch {
58
}
59
60
async flush () {
61
- await this.core.append(this.blocks)
+ await this.blobs.core.append(this.blocks)
62
this.blocks = []
63
this.bytes = 0
64
test/all.js
@@ -392,6 +392,8 @@ test('basic batch', async (t) => {
392
const buf = await batch.get(id)
393
t.alike(buf, Buffer.from('hej verden'))
394
395
+
396
+ await batch.flush()
397
})
398
399
async function createPair () {
0 commit comments