Skip to content

Commit

Permalink
fix: targetmanager will not update registration indefinetely (#114)
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
  • Loading branch information
puffitos authored Feb 28, 2024
1 parent 9e69b02 commit 532f07d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/sparrow/targets/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 532f07d

Please sign in to comment.