mirror of
https://github.com/restic/restic.git
synced 2025-03-13 21:10:50 +00:00

The method only ever receives *hashing.Writers, which don't implement io.Closer. These come from packerManager.findPacker and have their actual writers closed in Repository.savePacker. Moving the closing logic to hashing.Writer results in "file already closed" errors.