This commit is contained in:
parent
4aa4daa295
commit
fedd9f1bbf
2 changed files with 10 additions and 8 deletions
|
|
@ -26,10 +26,8 @@ func (p *Processor) StartWork(receivedTasks []shared.TaskResponse) {
|
|||
wg.Add(1)
|
||||
go func(origin string, tasks []shared.Task) {
|
||||
defer wg.Done()
|
||||
if p.handlers[origin] != nil {
|
||||
log.Info("Running task handler for origin: ", origin)
|
||||
p.handlers[origin].HandleTasks(tasks, p.out, p.state)
|
||||
}
|
||||
log.Info("Running task handler for origin: ", origin)
|
||||
p.handlers[origin].HandleTasks(tasks, p.out, p.state)
|
||||
}(origin, tasks)
|
||||
}
|
||||
wg.Wait()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue