We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e050ee9 commit ded396dCopy full SHA for ded396d
internal/watcher/instance/instance_watcher_service.go
@@ -218,10 +218,11 @@ func (iw *InstanceWatcherService) checkForUpdates(
218
"error", parseErr,
219
)
220
} else {
221
+ iw.cacheMutex.Lock()
222
iw.sendNginxConfigContextUpdate(newCtx, nginxConfigContext)
- iw.nginxConfigCache[nginxConfigContext.InstanceID] = 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()
228
}
0 commit comments