diff --git a/pkg/syncer/controllermanager/controllermanager.go b/pkg/syncer/controllermanager/controllermanager.go index e102068d9748..701615f6bdbd 100644 --- a/pkg/syncer/controllermanager/controllermanager.go +++ b/pkg/syncer/controllermanager/controllermanager.go @@ -133,12 +133,12 @@ func (c *ControllerManager) processNextWorkItem(ctx context.Context) bool { } defer c.queue.Done(key) - c.updateControllers(ctx) + c.process(ctx) c.queue.Forget(key) return true } -func (c *ControllerManager) updateControllers(ctx context.Context) { +func (c *ControllerManager) process(ctx context.Context) { logger := klog.FromContext(ctx) controllersToStart := map[string]CreateControllerFunc{} syncedInformers, notSynced := c.informerSource.Informers()