diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-13 15:23:32 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-09-13 15:25:11 +0200 |
commit | 3e0123b9d8a1097e74fcd500b72cbdaa00c7a49a (patch) | |
tree | e88736021d21463717011ab0771a3637697c0217 /delta.go | |
parent | 7f65509f10704a0fbe2ad7e227eee1d0babc9c93 (diff) | |
download | dna-backup-3e0123b9d8a1097e74fcd500b72cbdaa00c7a49a.tar.gz dna-backup-3e0123b9d8a1097e74fcd500b72cbdaa00c7a49a.zip |
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.
Diffstat (limited to 'delta.go')
-rw-r--r-- | delta.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |