mirror of
https://github.com/restic/restic.git
synced 2026-08-03 12:42:17 +00:00
repository: change Unlocker to interface
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ func internalOpenWithLocked(ctx context.Context, gopts global.Options, dryRun bo
|
||||
|
||||
unlock := func() {}
|
||||
if !dryRun {
|
||||
var lock *repository.Unlocker
|
||||
var lock repository.Unlocker
|
||||
|
||||
lock, ctx, err = repository.Lock(ctx, repo, exclusive, gopts.RetryLock, func(msg string) {
|
||||
if !gopts.JSON {
|
||||
|
||||
Reference in New Issue
Block a user