remove annotation cache sync because of code removed

This commit is contained in:
lixiaobing1 2020-11-06 18:41:08 +08:00
parent 8f6ffb24df
commit 6a41d81264

2
pkg/scheduler/scheduler.go Normal file → Executable file
View File

@ -307,7 +307,7 @@ func initPolicyFromConfigMap(client clientset.Interface, policyRef *schedulerapi
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) {
sched.SchedulingQueue.Run()
wait.UntilWithContext(ctx, sched.scheduleOne, 0)