mandarake parser rework
All checks were successful
/ Make image (push) Successful in 39s

This commit is contained in:
nquidox 2025-12-26 16:19:09 +03:00
parent d63d345a9b
commit e48160dfa3
8 changed files with 243 additions and 390 deletions

View file

@ -26,7 +26,10 @@ func (p *Processor) StartWork(receivedTasks []shared.TaskResponse) {
wg.Add(1)
go func(origin string, tasks []shared.Task) {
defer wg.Done()
p.handlers[origin].HandleTasks(tasks, p.out, p.state)
if p.handlers[origin] != nil {
log.Info("Running task handler for origin: ", origin)
p.handlers[origin].HandleTasks(tasks, p.out, p.state)
}
}(origin, tasks)
}
wg.Wait()