Skip to content

Commit b275890

Browse files
author
Alan Shaw
committed
docs: rename import variable
1 parent 7b9975b commit b275890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ If adding many multiple items to the pail together, it is faster to batch them t
4848
import { put, get, del } from '@alanshaw/pail'
4949
import { ShardBlock } from '@alanshaw/pail/shard'
5050
import { MemoryBlockstore } from '@alanshaw/pail/block'
51-
import * as Batcher from '@alanshaw/pail/batch'
51+
import * as Batch from '@alanshaw/pail/batch'
5252

5353
// Initialize a new bucket
5454
const blocks = new MemoryBlockstore()
5555
const init = await ShardBlock.create() // empty root shard
5656
await blocks.put(init.cid, init.bytes)
5757

58-
const batch = await Batcher.create(blocks, init.cid)
58+
const batch = await Batch.create(blocks, init.cid)
5959

6060
// items is an array of `{ key: string, value: CID }` - the items to add to the pail
6161
for (const item of items) {

0 commit comments

Comments
 (0)