mirror of
https://github.com/restic/restic.git
synced 2025-12-15 18:02:22 +00:00
restore: Use proper context while loading snapshot
This commit is contained in:
@@ -128,7 +128,7 @@ func runRestore(opts RestoreOptions, gopts GlobalOptions, args []string) error {
|
||||
}
|
||||
}
|
||||
|
||||
res, err := restorer.NewRestorer(repo, id)
|
||||
res, err := restorer.NewRestorer(ctx, repo, id)
|
||||
if err != nil {
|
||||
Exitf(2, "creating restorer failed: %v\n", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user