mirror of
https://github.com/restic/restic.git
synced 2025-12-12 10:52:08 +00:00
restore: reduce memory usage
This commit is contained in:
@@ -161,6 +161,8 @@ func (r *fileRestorer) restoreFiles(ctx context.Context) error {
|
|||||||
file.blobs = packsMap
|
file.blobs = packsMap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// drop no longer necessary file list
|
||||||
|
r.files = nil
|
||||||
|
|
||||||
wg, ctx := errgroup.WithContext(ctx)
|
wg, ctx := errgroup.WithContext(ctx)
|
||||||
downloadCh := make(chan *packInfo)
|
downloadCh := make(chan *packInfo)
|
||||||
|
|||||||
Reference in New Issue
Block a user