Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Dec 11, 2024
1 parent f7fa5aa commit cbfb74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/election/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (l *lease) KeepAlive(ctx context.Context) {
l.expireTime.Store(t)
}
}
timerutil.SafeResetTimer(timer,l.leaseTimeout)
timerutil.SafeResetTimer(timer, l.leaseTimeout)
case <-timer.C:
log.Info("keep alive lease too slow", zap.Duration("timeout-duration", l.leaseTimeout), zap.Time("actual-expire", l.expireTime.Load().(time.Time)), zap.String("purpose", l.Purpose))
return
Expand Down

0 comments on commit cbfb74d

Please sign in to comment.