mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Merge pull request #96301 from lixiaobing1/removeNoteCacheSync
remove comment for cache sync because code was removed
This commit is contained in:
commit
bf5382a53e
2
pkg/scheduler/scheduler.go
Normal file → Executable file
2
pkg/scheduler/scheduler.go
Normal file → Executable file
@ -307,7 +307,7 @@ func initPolicyFromConfigMap(client clientset.Interface, policyRef *schedulerapi
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run begins watching and scheduling. It waits for cache to be synced, then starts scheduling and blocked until the context is done.
|
// Run begins watching and scheduling. It starts scheduling and blocked until the context is done.
|
||||||
func (sched *Scheduler) Run(ctx context.Context) {
|
func (sched *Scheduler) Run(ctx context.Context) {
|
||||||
sched.SchedulingQueue.Run()
|
sched.SchedulingQueue.Run()
|
||||||
wait.UntilWithContext(ctx, sched.scheduleOne, 0)
|
wait.UntilWithContext(ctx, sched.scheduleOne, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user