mirror of
https://github.com/restic/restic.git
synced 2024-09-08 04:19:31 +02:00
Due to the interface of streamPack, we cannot guarantee that operations progress fast enough that the underlying connections remains open. This introduces partial failures which massively complicate the error handling. Switch to a simpler approach that retrieves the pack in chunks of 32MB. If a blob is larger than this limit, then it is downloaded separately. To avoid multiple copies in memory, an auxiliary interface `discardReader` is introduced that allows directly accessing the downloaded byte slices, while still supporting the streaming used by the `check` command. |
||
---|---|---|
.. | ||
testdata | ||
checker_test.go | ||
checker.go | ||
testing.go |