mirror of
https://github.com/restic/restic.git
synced 2026-07-19 21:54:53 +00:00
Pass context to lockRepo
This commit is contained in:
@@ -134,7 +134,7 @@ func runDebugDump(gopts GlobalOptions, args []string) error {
|
||||
}
|
||||
|
||||
if !gopts.NoLock {
|
||||
lock, err := lockRepo(repo)
|
||||
lock, err := lockRepo(gopts.ctx, repo)
|
||||
defer unlockRepo(lock)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user