Avoid sleep in endpoint controller

This commit is contained in:
Wojciech Tyczynski 2017-05-19 13:57:36 +02:00
parent 151846db80
commit d2529bb6b6

View File

@ -146,7 +146,6 @@ func (e *EndpointController) Run(workers int, stopCh <-chan struct{}) {
go func() {
defer utilruntime.HandleCrash()
time.Sleep(5 * time.Minute) // give time for our cache to fill
e.checkLeftoverEndpoints()
}()