From 532f07df128424978b0da73bc2e124e8c411ad8a Mon Sep 17 00:00:00 2001 From: Bruno Bressi <52347078+puffitos@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:09:37 +0100 Subject: [PATCH] fix: targetmanager will not update registration indefinetely (#114) Signed-off-by: Bruno Bressi --- pkg/sparrow/targets/gitlab.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/sparrow/targets/gitlab.go b/pkg/sparrow/targets/gitlab.go index 87d31db1..88a780d2 100644 --- a/pkg/sparrow/targets/gitlab.go +++ b/pkg/sparrow/targets/gitlab.go @@ -97,19 +97,16 @@ func (t *gitlabTargetManager) Reconcile(ctx context.Context) error { if err != nil { log.Warn("Failed to get global targets", "error", err) } - checkTimer.Reset(t.cfg.CheckInterval) case <-registrationTimer.C: err := t.register(ctx) if err != nil { log.Warn("Failed to register self as global target", "error", err) } - registrationTimer.Reset(t.cfg.RegistrationInterval) case <-updateTimer.C: err := t.update(ctx) if err != nil { log.Warn("Failed to update registration", "error", err) } - updateTimer.Reset(t.cfg.UpdateInterval) } } }