From a3abb8063599f555fbd38666432a8c84ccc545ab Mon Sep 17 00:00:00 2001 From: MrPresent-Han Date: Fri, 15 Nov 2024 04:42:01 -0500 Subject: [PATCH] disable refresh config for now --- pkg/config/refresher.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/config/refresher.go b/pkg/config/refresher.go index 2a403f5ed5156..742fcfd130cbb 100644 --- a/pkg/config/refresher.go +++ b/pkg/config/refresher.go @@ -47,8 +47,9 @@ func newRefresher(interval time.Duration, fetchFunc func() error) *refresher { func (r *refresher) start(name string) { if r.refreshInterval > 0 { r.intervalInitOnce.Do(func() { - r.wg.Add(1) - go r.refreshPeriodically(name) + //r.wg.Add(1) + //go r.refreshPeriodically(name) + log.Info("Disable refresh periodically") }) } }