Skip to content

Commit a219346

Browse files
committed
fix test
1 parent 7174c0e commit a219346

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/watcher/instance/nginx-app-protect-instance-watcher.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ func (w *NginxAppProtectInstanceWatcher) deleteInstance(ctx context.Context) {
250250
}
251251

252252
func (w *NginxAppProtectInstanceWatcher) updateInstance(ctx context.Context) {
253+
w.instanceMutex.Lock()
254+
defer w.instanceMutex.Unlock()
253255
w.nginxAppProtectInstance.GetInstanceMeta().Version = w.version
254256
runtimeInfo := w.nginxAppProtectInstance.GetInstanceRuntime().GetNginxAppProtectRuntimeInfo()
255257
if runtimeInfo == nil {

0 commit comments

Comments
 (0)