lease/lessor.go
func (l *Lease) refresh(extend time.Duration) {
	newExpiry := time.Now().Add(extend + time.Duration(l.RemainingTTL())*time.Second)
	l.expiryMu.Lock()
	defer l.expiryMu.Unlock()
	l.expiry = newExpiry
}
func (l *Lease) refresh(extend time.Duration) {
	newExpiry := time.Now().Add(extend + time.Duration(l.RemainingTTL())*time.Second)
	l.expiryMu.Lock()
	defer l.expiryMu.Unlock()
	l.expiry = newExpiry
}
func ( l * Lease ) refresh ( extend time . Duration ) { newExpiry := time . Now ( ) . Add ( extend + time . Duration ( l . RemainingTTL ( ) ) * time . Second ) l . expiryMu . Lock ( ) defer l . expiryMu . Unlock ( ) l . expiry = newExpiry }
// refresh refreshes the expiry of the lease.
refresh refreshes the expiry of the lease .