From 89b7cdb8d1b59e9292f8fbc92f9c8b80eda3f44f Mon Sep 17 00:00:00 2001 From: Eryk Kulikowski Date: Thu, 20 Apr 2023 11:49:48 +0200 Subject: [PATCH] removed fixity checks for performance reasons --- image/app/core/persisting.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/image/app/core/persisting.go b/image/app/core/persisting.go index 66d2b0a..ebc6d49 100644 --- a/image/app/core/persisting.go +++ b/image/app/core/persisting.go @@ -186,7 +186,7 @@ func doPersistNodeMap(ctx context.Context, streams map[string]types.Stream, in J if err != nil { return } - } else { + } /*else { var nm map[string]tree.Node fileFound := false written := tree.Node{} @@ -216,7 +216,8 @@ func doPersistNodeMap(ctx context.Context, streams map[string]types.Stream, in J } if remoteHashVlaue != fmt.Sprintf("%x", newH) { err = fmt.Errorf("written file hash not equal") - } + return + }*/ if hashValue != remoteHashVlaue { knownHashes[v.Id] = calculatedHashes{