mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-25 12:17:52 +00:00
Cancellable leader election with channels
This commit is contained in:
@@ -199,7 +199,7 @@ func Run(c schedulerserverconfig.CompletedConfig, stopCh <-chan struct{}) error
|
||||
return fmt.Errorf("couldn't create leader elector: %v", err)
|
||||
}
|
||||
|
||||
leaderElector.Run()
|
||||
leaderElector.Run(stopCh)
|
||||
|
||||
return fmt.Errorf("lost lease")
|
||||
}
|
||||
|
Reference in New Issue
Block a user