Avoid sleep in endpoint controller
This commit is contained in:
@@ -146,7 +146,6 @@ func (e *EndpointController) Run(workers int, stopCh <-chan struct{}) {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
defer utilruntime.HandleCrash()
|
defer utilruntime.HandleCrash()
|
||||||
time.Sleep(5 * time.Minute) // give time for our cache to fill
|
|
||||||
e.checkLeftoverEndpoints()
|
e.checkLeftoverEndpoints()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user