parsers registration change
All checks were successful
/ Make image (push) Successful in 39s

This commit is contained in:
nquidox 2025-12-26 18:49:22 +03:00
parent 4aa4daa295
commit fedd9f1bbf
2 changed files with 10 additions and 8 deletions

View file

@ -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()