From 3e0123b9d8a1097e74fcd500b72cbdaa00c7a49a Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 13 Sep 2021 15:23:32 +0200 Subject: fix loadChunks by using cache instead of reading file This way there is only one place where we read chunks and where the read/write wrapper is used. This also allows to remove LoadedChunk as it is not used anymore. --- delta.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'delta.go') diff --git a/delta.go b/delta.go index 423fb07..ff42e86 100644 --- a/delta.go +++ b/delta.go @@ -20,7 +20,7 @@ type Patcher interface { Patch(source io.Reader, target io.Writer, patch io.Reader) error } -// TODO: maybe move this in it own file ? +// TODO: maybe move this in its own file ? type Bsdiff struct{} func (*Bsdiff) Diff(source io.Reader, target io.Reader, patch io.Writer) error { -- cgit v1.2.3