lease/lessor.go
func (l *Lease) Remaining() time.Duration {
	l.expiryMu.RLock()
	defer l.expiryMu.RUnlock()
	if l.expiry.IsZero() {
		return time.Duration(math.MaxInt64)
	}
	return time.Until(l.expiry)
}
func (l *Lease) Remaining() time.Duration {
	l.expiryMu.RLock()
	defer l.expiryMu.RUnlock()
	if l.expiry.IsZero() {
		return time.Duration(math.MaxInt64)
	}
	return time.Until(l.expiry)
}
func ( l * Lease ) Remaining ( ) time . Duration { l . expiryMu . RLock ( ) defer l . expiryMu . RUnlock ( ) if l . expiry . IsZero ( ) { return time . Duration ( math . MaxInt64 ) } return time . Until ( l . expiry ) }
// Remaining returns the remaining time of the lease.
Remaining returns the remaining time of the lease .