From 00fb95d69a878a6a742fcd7fb4fa8bbdac895251 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Thu, 22 Jan 2026 01:54:59 +0100 Subject: [PATCH] chore: apply suggestions from code review Co-authored-by: Andrew Gillis <11790789+gammazero@users.noreply.github.com> --- config/import.go | 2 +- test/cli/cid_profiles_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/import.go b/config/import.go index 995c371d2..2c88a12f3 100644 --- a/config/import.go +++ b/config/import.go @@ -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 diff --git a/test/cli/cid_profiles_test.go b/test/cli/cid_profiles_test.go index 4f153bf48..10e565283 100644 --- a/test/cli/cid_profiles_test.go +++ b/test/cli/cid_profiles_test.go @@ -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)