@@ -170,16 +170,15 @@ func (w *Watcher) handleConfigApplySuccess(ctx context.Context, msg *bus.Message
170170
171171 slog .Info ("handleConfigApplySuccess start" )
172172 w .watcherMutex .Lock ()
173- // defer w.watcherMutex.Unlock()
174173 w .instancesWithConfigApplyInProgress = slices .DeleteFunc (
175174 w .instancesWithConfigApplyInProgress ,
176175 func (element string ) bool {
177176 return element == instanceID
178177 },
179178 )
180179 w .fileWatcherService .SetEnabled (true )
181-
182180 w .watcherMutex .Unlock ()
181+
183182 w .instanceWatcherService .ReparseConfig (ctx , instanceID )
184183 slog .Info ("handleConfigApplySuccess done" )
185184}
@@ -223,9 +222,7 @@ func (w *Watcher) monitorWatchers(ctx context.Context) {
223222 case message := <- w .nginxConfigContextChannel :
224223 newCtx := context .WithValue (ctx , logger .CorrelationIDContextKey , message .CorrelationID )
225224 w .watcherMutex .Lock ()
226- slog .Info ("============= Nginx Config Context Channel" )
227225 if ! slices .Contains (w .instancesWithConfigApplyInProgress , message .NginxConfigContext .InstanceID ) {
228- slog .Info ("============= Nginx Config Context update" )
229226 slog .DebugContext (
230227 newCtx ,
231228 "Updated NGINX config context" ,
@@ -244,7 +241,6 @@ func (w *Watcher) monitorWatchers(ctx context.Context) {
244241 )
245242 }
246243 w .watcherMutex .Unlock ()
247- slog .Info ("============= Nginx Config Unlock" )
248244 case message := <- w .instanceHealthChannel :
249245 newCtx := context .WithValue (ctx , logger .CorrelationIDContextKey , message .CorrelationID )
250246 w .messagePipe .Process (newCtx , & bus.Message {
0 commit comments