From 1e33b285c11775d681f9398daa19a5a034ac7bfa Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Thu, 18 May 2023 20:02:52 +0200 Subject: [PATCH] lock: remove unused parameter --- cmd/restic/lock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/restic/lock.go b/cmd/restic/lock.go index 450922704..f7bba9b2f 100644 --- a/cmd/restic/lock.go +++ b/cmd/restic/lock.go @@ -111,7 +111,7 @@ retryLoop: globalLocks.Lock() globalLocks.locks[lock] = lockInfo go refreshLocks(ctx, lock, lockInfo, refreshChan) - go monitorLockRefresh(ctx, lock, lockInfo, refreshChan) + go monitorLockRefresh(ctx, lockInfo, refreshChan) globalLocks.Unlock() return lock, ctx, err @@ -170,7 +170,7 @@ func refreshLocks(ctx context.Context, lock *restic.Lock, lockInfo *lockContext, } } -func monitorLockRefresh(ctx context.Context, lock *restic.Lock, lockInfo *lockContext, refreshed <-chan struct{}) { +func monitorLockRefresh(ctx context.Context, lockInfo *lockContext, refreshed <-chan struct{}) { // time.Now() might use a monotonic timer which is paused during standby // convert to unix time to ensure we compare real time values lastRefresh := time.Now().UnixNano()