File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -315,11 +315,11 @@ type LeaderElectionRunnable interface {
315
315
}
316
316
317
317
// warmupRunnable knows if a Runnable requires warmup. A warmup runnable is a runnable
318
- // that should be run when the manager is started, but before the leader election is acquired .
318
+ // that should be run when the manager is started but before it becomes leader .
319
319
// Note: Implementing this interface is only useful when LeaderElection can be enabled, as the
320
320
// behavior when leaderelection is not enabled is to run LeaderElectionRunnables immediately.
321
321
type warmupRunnable interface {
322
- // Warmup is the implementation of the warmup runnable .
322
+ // Warmup will be called when the manager is started but before it becomes leader .
323
323
Warmup (context.Context ) error
324
324
325
325
// WaitForWarmupComplete is a blocking function that waits for the warmup to be completed. It
You can’t perform that action at this time.
0 commit comments