mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-15 15:53:26 +00:00
ChunkMaker should return the chunk once it is filled
This commit is contained in:
@@ -178,6 +178,9 @@ func (maker *ChunkMaker) ForEachChunk(reader io.Reader, endOfChunk func(chunk *C
|
|||||||
fileHasher = maker.config.NewFileHasher()
|
fileHasher = maker.config.NewFileHasher()
|
||||||
isEOF = false
|
isEOF = false
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
endOfChunk(chunk, false)
|
||||||
|
startNewChunk()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user