restorer: convert to use StreamPack

This commit is contained in:
Michael Eischer committed 2022-02-12 20:18:25 +01:00
1 parent f00f690658
commit f40abd92fa
3 files changed
+40 -111

No files matched your search

+1 -1
View File
@@ -798,7 +798,7 @@ func StreamPack(ctx context.Context, beLoad BackendLoadFn, key *crypto.Key, pack
sort.Slice(blobs, func(i, j int) bool {
return blobs[i].Offset < blobs[j].Offset
})
h := restic.Handle{Type: restic.PackFile, Name: packID.String()}
h := restic.Handle{Type: restic.PackFile, Name: packID.String(), ContainedBlobType: restic.DataBlob}
dataStart := blobs[0].Offset
dataEnd := blobs[len(blobs)-1].Offset + blobs[len(blobs)-1].Length