We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a7daab commit ff82de6Copy full SHA for ff82de6
internal/watcher/instance/instance_watcher_service.go
@@ -218,10 +218,10 @@ func (iw *InstanceWatcherService) checkForUpdates(
218
"error", parseErr,
219
)
220
} else {
221
+ iw.cacheMutex.Lock()
222
iw.sendNginxConfigContextUpdate(newCtx, nginxConfigContext)
223
proto.UpdateNginxInstanceRuntime(newInstance, nginxConfigContext)
224
- iw.cacheMutex.Lock()
225
iw.nginxConfigCache[nginxConfigContext.InstanceID] = nginxConfigContext
226
iw.instanceCache[newInstance.GetInstanceMeta().GetInstanceId()] = newInstance
227
iw.cacheMutex.Unlock()
0 commit comments