Skip to content

Commit 9d1247c

Browse files
committed
Merge branch 'main' into update-dependency-review-workflow
2 parents 34388ea + 6cbcd8b commit 9d1247c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ require (
147147
github.com/ebitengine/purego v0.9.1 // indirect
148148
github.com/elastic/go-grok v0.3.1 // indirect
149149
github.com/elastic/lunes v0.2.0 // indirect
150-
github.com/expr-lang/expr v1.17.6 // indirect
150+
github.com/expr-lang/expr v1.17.7 // indirect
151151
github.com/felixge/httpsnoop v1.0.4 // indirect
152152
github.com/foxboron/go-tpm-keyfiles v0.0.0-20250903184740-5d135037bd4d // indirect
153153
github.com/fxamacker/cbor/v2 v2.9.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ github.com/envoyproxy/go-control-plane/envoy v1.35.0/go.mod h1:09qwbGVuSWWAyN5t/
194194
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
195195
github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8=
196196
github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU=
197-
github.com/expr-lang/expr v1.17.6 h1:1h6i8ONk9cexhDmowO/A64VPxHScu7qfSl2k8OlINec=
198-
github.com/expr-lang/expr v1.17.6/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
197+
github.com/expr-lang/expr v1.17.7 h1:Q0xY/e/2aCIp8g9s/LGvMDCC5PxYlvHgDZRQ4y16JX8=
198+
github.com/expr-lang/expr v1.17.7/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
199199
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb h1:IT4JYU7k4ikYg1SCxNI1/Tieq/NFvh6dzLdgi7eu0tM=
200200
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb/go.mod h1:bH6Xx7IW64qjjJq8M2u4dxNaBiDfKK+z/3eGDpXEQhc=
201201
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=

internal/watcher/watcher_plugin.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,6 @@ func (w *Watcher) handleEnableWatchers(ctx context.Context, msg *bus.Message) {
186186
instanceID := enableWatchersMessage.InstanceID
187187
configContext := enableWatchersMessage.ConfigContext
188188

189-
// if config apply ended in a reload there is no need to reparse the config so an empty config context is sent
190-
// from the file plugin
191-
if configContext.InstanceID != "" {
192-
w.instanceWatcherService.HandleNginxConfigContextUpdate(ctx, instanceID, configContext)
193-
}
194-
195189
w.watcherMutex.Lock()
196190
w.instancesWithConfigApplyInProgress = slices.DeleteFunc(
197191
w.instancesWithConfigApplyInProgress,
@@ -203,6 +197,12 @@ func (w *Watcher) handleEnableWatchers(ctx context.Context, msg *bus.Message) {
203197
w.fileWatcherService.EnableWatcher(ctx)
204198
w.instanceWatcherService.SetEnabled(true)
205199
w.watcherMutex.Unlock()
200+
201+
// if config apply ended in a reload there is no need to reparse the config so an empty config context is sent
202+
// from the file plugin
203+
if configContext.InstanceID != "" {
204+
w.instanceWatcherService.HandleNginxConfigContextUpdate(ctx, instanceID, configContext)
205+
}
206206
}
207207

208208
func (w *Watcher) handleConfigApplyRequest(ctx context.Context, msg *bus.Message) {

0 commit comments

Comments
 (0)