client-go: fix typo in leaderelection error log message

This commit is contained in:
Tobias Klauser
2024-08-13 11:21:57 +02:00
committed by Tobias Klauser
parent 099a88370d
commit 99a90df3d0

View File

@@ -426,7 +426,7 @@ func (le *LeaderElector) tryAcquireOrRenew(ctx context.Context) bool {
le.setObservedRecord(&leaderElectionRecord) le.setObservedRecord(&leaderElectionRecord)
return true return true
} }
klog.Errorf("Failed to update lock optimitically: %v, falling back to slow path", err) klog.Errorf("Failed to update lock optimistically: %v, falling back to slow path", err)
} }
// 2. obtain or create the ElectionRecord // 2. obtain or create the ElectionRecord