Skip to content

Commit 4a49db9

Browse files
committed
fix race
1 parent d1cb363 commit 4a49db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (w *NginxAppProtectInstanceWatcher) addWatcher(ctx context.Context, version
145145
func (w *NginxAppProtectInstanceWatcher) readVersionFile(ctx context.Context, versionFile string) {
146146
w.instanceMutex.Lock()
147147
defer w.instanceMutex.Unlock()
148-
148+
149149
switch versionFile {
150150
case versionFilePath:
151151
w.version = w.readFile(ctx, versionFilePath)

0 commit comments

Comments
 (0)