From b2758901c01c0ae2d3e64981a3e53e4796ec7d95 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 10 Jan 2024 14:39:51 +0000 Subject: [PATCH] docs: rename import variable --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bb21b342..c4edecba 100644 --- a/README.md +++ b/README.md @@ -48,14 +48,14 @@ If adding many multiple items to the pail together, it is faster to batch them t import { put, get, del } from '@alanshaw/pail' import { ShardBlock } from '@alanshaw/pail/shard' import { MemoryBlockstore } from '@alanshaw/pail/block' -import * as Batcher from '@alanshaw/pail/batch' +import * as Batch from '@alanshaw/pail/batch' // Initialize a new bucket const blocks = new MemoryBlockstore() const init = await ShardBlock.create() // empty root shard await blocks.put(init.cid, init.bytes) -const batch = await Batcher.create(blocks, init.cid) +const batch = await Batch.create(blocks, init.cid) // items is an array of `{ key: string, value: CID }` - the items to add to the pail for (const item of items) {