2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-27 07:16:40 +00:00

restore: reduce memory usage

This commit is contained in:
Michael Eischer 2024-05-31 15:50:48 +02:00
parent 2b50c2606c
commit a23cb3a428

View File

@ -161,6 +161,8 @@ func (r *fileRestorer) restoreFiles(ctx context.Context) error {
file.blobs = packsMap
}
}
// drop no longer necessary file list
r.files = nil
wg, ctx := errgroup.WithContext(ctx)
downloadCh := make(chan *packInfo)