fix(orchestrator): use labeled break to correctly exit for/select on context cancel (SA4011)
Some checks failed
CI / Lint (pull_request) Successful in 1m10s
CI / Test (pull_request) Successful in 23s
CI / Build (pull_request) Failing after 12s

Add tools.go to pin staticcheck as a module dependency so CI installs
it from the module cache instead of re-downloading on every run.
This commit is contained in:
Admin
2026-03-06 11:03:18 +05:00
parent 53083429a0
commit 589f39b49e
2 changed files with 78 additions and 1 deletions

View File

@@ -247,10 +247,11 @@ func (o *Orchestrator) Run(ctx context.Context) error {
}()
var bookWG sync.WaitGroup
bookLoop:
for entry := range entries {
select {
case <-ctx.Done():
break
break bookLoop
default:
}