mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-15 05:04:27 +08:00
Go: fix go context (#18052)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user