mirror of
https://github.com/restic/restic.git
synced 2026-11-06 07:19:21 +00:00
Pass context to lockRepo
This commit is contained in:
1 parent
37a5e2d681
commit
0c9efa9c2a
21 files changed
+30
-30
No files matched your search
@@ -99,7 +99,7 @@ func runMigrate(opts MigrateOptions, gopts GlobalOptions, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
lock, err := lockRepoExclusive(repo)
|
||||
lock, err := lockRepoExclusive(gopts.ctx, repo)
|
||||
defer unlockRepo(lock)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user