From f268a909b5a9536412f0b75f5c54728d8eba87f2 Mon Sep 17 00:00:00 2001 From: "Steffen F. Qvistgaard" Date: Sat, 24 Feb 2024 14:18:44 +0100 Subject: [PATCH] fix: added single thread per event --- internal/rms/runner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rms/runner.go b/internal/rms/runner.go index 3fe70a4..299d21a 100644 --- a/internal/rms/runner.go +++ b/internal/rms/runner.go @@ -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)) } }