From a52e409d56c2e6b5082ff7f239dcb8d17ded360c Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Fri, 15 Sep 2023 16:50:58 +0200 Subject: [PATCH] fix lint --- .../eventing-controller/controllers/backend/reconciler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/eventing-controller/controllers/backend/reconciler.go b/components/eventing-controller/controllers/backend/reconciler.go index 4c53fde97834..00c4085fb0e0 100644 --- a/components/eventing-controller/controllers/backend/reconciler.go +++ b/components/eventing-controller/controllers/backend/reconciler.go @@ -66,7 +66,7 @@ const ( secretKeyTokenURL = "token_url" secretKeyCertsURL = "certs_url" - thirtySeconds = 30 * time.Second + reconcileInterval = 30 * time.Second ) var ( @@ -216,7 +216,7 @@ func (r *Reconciler) reconcileNATSBackend(ctx context.Context, backendStatus *ev return ctrl.Result{}, errors.Wrapf(err, "failed to update status while starting NATS controller") } r.namedLogger().Errorf("failed to start NATS controller: %v", err) - return ctrl.Result{RequeueAfter: thirtySeconds}, nil + return ctrl.Result{RequeueAfter: reconcileInterval}, nil } // Delete secret for publisher proxy if it exists