Skip to content

Commit 89b7cdb

Browse files
committed
removed fixity checks for performance reasons
1 parent f6d6c2f commit 89b7cdb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

image/app/core/persisting.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func doPersistNodeMap(ctx context.Context, streams map[string]types.Stream, in J
186186
if err != nil {
187187
return
188188
}
189-
} else {
189+
} /*else {
190190
var nm map[string]tree.Node
191191
fileFound := false
192192
written := tree.Node{}
@@ -216,7 +216,8 @@ func doPersistNodeMap(ctx context.Context, streams map[string]types.Stream, in J
216216
}
217217
if remoteHashVlaue != fmt.Sprintf("%x", newH) {
218218
err = fmt.Errorf("written file hash not equal")
219-
}
219+
return
220+
}*/
220221

221222
if hashValue != remoteHashVlaue {
222223
knownHashes[v.Id] = calculatedHashes{

0 commit comments

Comments
 (0)