From d8536122b99c8e8a5d8c0b85a1a634a7eb36d22c Mon Sep 17 00:00:00 2001 From: hyschumi Date: Thu, 24 Feb 2022 09:50:27 +0800 Subject: [PATCH] endpointslice: remove unnecessary HandleCrash --- pkg/controller/endpointslice/endpointslice_controller.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/controller/endpointslice/endpointslice_controller.go b/pkg/controller/endpointslice/endpointslice_controller.go index c7abb0cee2b..f91dc4de11d 100644 --- a/pkg/controller/endpointslice/endpointslice_controller.go +++ b/pkg/controller/endpointslice/endpointslice_controller.go @@ -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 }