Skip to content

Commit

Permalink
fix: added single thread per event
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen F. Qvistgaard committed Feb 24, 2024
1 parent 8db442a commit f268a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/rms/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ func (r *Runner) processEvents() error {
id := e.Car().Id()
if id > 0 {
if c, ok, _ := r.cars.Get(id); ok {
c.UpdateFromEvent(e)
go c.UpdateFromEvent(e)
}
}
}
r.race.UpdateFromEvent(e)
go r.race.UpdateFromEvent(e)
log.Tracef("processing time: %s", time.Now().Sub(start))
}
}
Expand Down

0 comments on commit f268a90

Please sign in to comment.