Skip to content

Commit 96c2af5

Browse files
achingbrainrvagg
andcommitted
feat: add config option to control fanout size (#356)
* feat: add config option to control fanout size Adds a `shardFanoutBytes` option to the importer to allow configuring the number of bytes used for the HAMT prefix, also a test. * fix: use fanout "bits" (#357) --------- Co-authored-by: Rod Vagg <[email protected]>
1 parent 3382a8f commit 96c2af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/hamt-sharded-directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function * listDirectory (node: PBNode, path: string, resolve: Resolve, de
3333
throw errCode(err, 'ERR_NOT_UNIXFS')
3434
}
3535

36-
if (!dir.fanout) {
36+
if (dir.fanout == null) {
3737
throw errCode(new Error('missing fanout'), 'ERR_NOT_UNIXFS')
3838
}
3939

0 commit comments

Comments
 (0)