From 5aed4151870482c2e7d2157ff0385dfe12528ec7 Mon Sep 17 00:00:00 2001 From: David Festal Date: Mon, 9 Jan 2023 17:50:29 +0100 Subject: [PATCH] Fix PR comment Signed-off-by: David Festal --- pkg/syncer/controllermanager/controllermanager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()