Browse Source

added in-memory

Achilleas Tzenetopoulos 5 years ago
parent
commit
0afbf13c9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kubernetes-v1.15.4/pkg/scheduler/scheduler.go

+ 1 - 1
kubernetes-v1.15.4/pkg/scheduler/scheduler.go

@@ -448,7 +448,7 @@ func (sched *Scheduler) scheduleOne() {
 	// Check if the cache needs update
 	// Check if the cache needs update
 	select {
 	select {
 	// clean the cache if 10 seconds are passed
 	// clean the cache if 10 seconds are passed
-	case <-customcache.labCache.Timeout.C:
+	case <-customcache.LabCache.Timeout.C:
 		klog.Infof("Time to erase")
 		klog.Infof("Time to erase")
 		customcache.LabCache.CleanCache()
 		customcache.LabCache.CleanCache()
 	default:
 	default: