Skip to content

Commit

Permalink
fix gbatch
Browse files Browse the repository at this point in the history
  • Loading branch information
snail007 committed Feb 4, 2025
1 parent c52e34e commit e73d35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/batch/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (s *Executor) waitFirst(checkSuccess bool) (value interface{}, err error) {
if len(s.tasks) == 0 {
return nil, errors.New("tasks is empty")
}
waitChan := make(chan taskResult, 1)
waitChan := make(chan taskResult)
allResult := glist.New()
p := gpool.New(s.workers)
defer p.Stop()
Expand Down

0 comments on commit e73d35f

Please sign in to comment.