From ea34c64c5cd6d62af487a0db62bd64a2b467ec25 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 30 Aug 2021 14:23:28 +0200 Subject: findSimilarChunk returns an Id if found --- repo_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'repo_test.go') diff --git a/repo_test.go b/repo_test.go index 40d4374..3a4af68 100644 --- a/repo_test.go +++ b/repo_test.go @@ -200,7 +200,9 @@ func TestBsdiff(t *testing.T) { } newChunks := extractNewChunks(recipe) log.Println("Checking new chunks:", len(newChunks[0])) - for _, c := range newChunks { - findSimilarChunks(c, sketches) + for _, chunks := range newChunks { + for _, c := range chunks { + log.Println(findSimilarChunk(c, sketches)) + } } } -- cgit v1.2.3