Go: fix go context (#18052)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-10 18:04:17 +08:00
committed by GitHub
parent 6f9d158e30
commit c697fcff41
26 changed files with 97 additions and 86 deletions

View File

@@ -87,7 +87,6 @@ func Run(ctx context.Context, deps common.Deps, param common.Param, inputs commo
perBatch := make([][]common.Product, len(batches))
jobs := make([]func() error, 0, len(batches))
for i, batch := range batches {
i, batch := i, batch
jobs = append(jobs, func() error {
packed, batchIDs := PackBatch(batch)
if len(batchIDs) == 0 {