From 2b13ab085d76386dc88f4e341d3a17665cc906ff Mon Sep 17 00:00:00 2001 From: absolutelightning Date: Sat, 17 Jun 2023 21:53:06 +0530 Subject: [PATCH] fix tests --- agent/agent.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index 5360e32a9ffa..7f68bd8d080b 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -4162,9 +4162,6 @@ func (a *Agent) reloadConfig(autoReload bool) error { } } - a.enableDebug.Store(newCfg.EnableDebug) - a.config.EnableDebug = newCfg.EnableDebug - return a.reloadConfigInternal(newCfg) } @@ -4299,6 +4296,9 @@ func (a *Agent) reloadConfigInternal(newCfg *config.RuntimeConfig) error { a.proxyConfig.SetUpdateRateLimit(newCfg.XDSUpdateRateLimit) + a.enableDebug.Store(newCfg.EnableDebug) + a.config.EnableDebug = newCfg.EnableDebug + return nil }