reducing the channel sizes so data doesn't pile up and frames are dropped instead

This commit is contained in:
2026-06-24 16:05:03 +01:00
parent 5b77b5b941
commit 2ae29af199
4 changed files with 10 additions and 11 deletions
+1 -7
View File
@@ -27,7 +27,7 @@ func NewTelemetryService(logger *slog.Logger, cdash *CDashService) *TelemetrySer
newService := &TelemetryService{
logger: logger,
cdash: cdash,
uiOutCh: make(chan telem.TelemetryData, 100),
uiOutCh: make(chan telem.TelemetryData, 5),
listeners: make(map[string]chan telem.TelemetryData),
}
@@ -78,12 +78,6 @@ func (t *TelemetryService) multiplexData(ctx context.Context, dataCh <-chan tele
}
}
t.mut.RUnlock()
select {
case t.uiOutCh <- data:
default:
// Control latency
}
}
}
}