Skip to content

Commit

Permalink
Moved wg increment for the return function
Browse files Browse the repository at this point in the history
  • Loading branch information
gaffo committed Jun 10, 2024
1 parent 1982e22 commit efa6cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ func (p *Processor[AC, OC, JC]) Exec(ctx context.Context, r *Run[OC, JC]) error
}

// wgReturn := sync.WaitGroup{}
wg.Add(1)

// Now we gotta kick off all of the states to their correct queue
p.enqueueAllJobs(r)

// Make a central processor and start it
wg.Add(1)
go func() {
for rtn := range p.returnChan {
j := rtn.Job
Expand Down

0 comments on commit efa6cf8

Please sign in to comment.