mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 11:27:42 +08:00
chore: apply suggestions from code review
Co-authored-by: Andrew Gillis <11790789+gammazero@users.noreply.github.com>
This commit is contained in:
parent
25ed654a37
commit
00fb95d69a
@ -31,7 +31,7 @@ const (
|
||||
DefaultBatchMaxSize = 100 << 20 // 20MiB
|
||||
|
||||
// HAMTSizeEstimation values for Import.UnixFSHAMTDirectorySizeEstimation
|
||||
HAMTSizeEstimationLinks = "links" // legacy: estimate using link names + CID byte lengths
|
||||
HAMTSizeEstimationLinks = "links" // legacy: estimate using link names + CID byte lengths (default)
|
||||
HAMTSizeEstimationBlock = "block" // full serialized dag-pb block size
|
||||
HAMTSizeEstimationDisabled = "disabled" // disable HAMT sharding entirely
|
||||
|
||||
|
||||
@ -350,7 +350,7 @@ func runProfileTests(t *testing.T, exp cidProfileExpectations, carOutputDir stri
|
||||
root, err := node.InspectPBNode(cidStr)
|
||||
assert.NoError(t, err)
|
||||
require.LessOrEqual(t, len(root.Links), exp.HAMTFanout,
|
||||
"expected HAMT directory with <=%d links", exp.HAMTFanout)
|
||||
"expected HAMT directory with <= %d links", exp.HAMTFanout)
|
||||
|
||||
// Verify hash function
|
||||
verifyHashFunction(t, node, cidStr, exp.HashFunc)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user