This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
module github.com/ipfs/go-unixfs
2
2
3
3
require (
4
+ github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a
4
5
github.com/gogo/protobuf v1.3.2
5
6
github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c // indirect
6
7
github.com/ipfs/go-bitfield v1.0.0
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ
3
3
github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
4
4
github.com/Kubuxu/go-os-helper v0.0.1 /go.mod h1:N8B+I7vPCT80IcP58r50u4+gEEcsZETFUpAzWW2ep1Y =
5
5
github.com/aead/siphash v1.0.1 /go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII =
6
+ github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a h1:E/8AP5dFtMhl5KPJz66Kt9G0n+7Sn41Fy1wv9/jHOrc =
7
+ github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a /go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE =
6
8
github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32 /go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8 =
7
9
github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c /go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI =
8
10
github.com/btcsuite/btcd v0.0.0-20190605094302-a0d1e3e36d50 h1:4i3KsuVA0o0KoBxAC5x+MY7RbteiMK1V7gf/G08NGIQ =
Original file line number Diff line number Diff line change 8
8
"github.com/ipfs/go-unixfs/hamt"
9
9
"github.com/ipfs/go-unixfs/private/linksize"
10
10
11
+ "github.com/alecthomas/units"
11
12
"github.com/ipfs/go-cid"
12
13
ipld "github.com/ipfs/go-ipld-format"
13
14
logging "github.com/ipfs/go-log"
@@ -23,7 +24,7 @@ var log = logging.Logger("unixfs")
23
24
// The size is not the *exact* block size of the encoded BasicDirectory but just
24
25
// the estimated size based byte length of links name and CID (BasicDirectory's
25
26
// ProtoNode doesn't use the Data field so this estimate is pretty accurate).
26
- var HAMTShardingSize = 0
27
+ var HAMTShardingSize = int ( 256 * units . KiB )
27
28
28
29
// DefaultShardWidth is the default value used for hamt sharding width.
29
30
// Needs to be a power of two (shard entry size) and multiple of 8 (bitfield size).
You can’t perform that action at this time.
0 commit comments