mirror of
https://github.com/octoleo/restic.git
synced 2024-11-05 12:57:53 +00:00
lock: remove unused parameter
This commit is contained in:
parent
c05f96e6b9
commit
1e33b285c1
@ -111,7 +111,7 @@ retryLoop:
|
|||||||
globalLocks.Lock()
|
globalLocks.Lock()
|
||||||
globalLocks.locks[lock] = lockInfo
|
globalLocks.locks[lock] = lockInfo
|
||||||
go refreshLocks(ctx, lock, lockInfo, refreshChan)
|
go refreshLocks(ctx, lock, lockInfo, refreshChan)
|
||||||
go monitorLockRefresh(ctx, lock, lockInfo, refreshChan)
|
go monitorLockRefresh(ctx, lockInfo, refreshChan)
|
||||||
globalLocks.Unlock()
|
globalLocks.Unlock()
|
||||||
|
|
||||||
return lock, ctx, err
|
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
|
// time.Now() might use a monotonic timer which is paused during standby
|
||||||
// convert to unix time to ensure we compare real time values
|
// convert to unix time to ensure we compare real time values
|
||||||
lastRefresh := time.Now().UnixNano()
|
lastRefresh := time.Now().UnixNano()
|
||||||
|
Loading…
Reference in New Issue
Block a user