move reconciler-started log in to the once (#1538)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com> Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
This commit is contained in:
Родитель
00d0ca5627
Коммит
31b75cf44f
|
@ -123,8 +123,10 @@ func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reco
|
|||
}
|
||||
|
||||
// we have received and pushed an NNC update, we are "Started"
|
||||
logger.Printf("[cns-rc] CNS NNC Reconciler Started")
|
||||
r.once.Do(func() { close(r.started) })
|
||||
r.once.Do(func() {
|
||||
close(r.started)
|
||||
logger.Printf("[cns-rc] CNS NNC Reconciler Started")
|
||||
})
|
||||
return reconcile.Result{}, nil
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче