endpointslice: remove unnecessary HandleCrash

This commit is contained in:
hyschumi 2022-02-24 09:50:27 +08:00 committed by liudongsheng
parent 2fcdbd098c
commit d8536122b9

View File

@ -265,10 +265,6 @@ func (c *Controller) Run(workers int, stopCh <-chan struct{}) {
go wait.Until(c.worker, c.workerLoopPeriod, stopCh)
}
go func() {
defer utilruntime.HandleCrash()
}()
<-stopCh
}