clean up a bit the logic of how we get to know whether the telemetry started on devices lookup

This commit is contained in:
2026-09-21 15:55:31 +01:00
parent b364931c80
commit d10c6997f4
5 changed files with 45 additions and 61 deletions
-2
View File
@@ -25,11 +25,9 @@ func NewOrchestrator(logger *slog.Logger) (*Orchestrator, error) {
go telemService.FindProvider(telemService.CtxMonitor)
// Setup device service callbacks
devService.OnPeripheralFound = telemService.PeripheralFoundCallback
devService.telemetryProvider = telemService.GetTelemetryProviderName
// Setup telemetry service callbacks
telemService.OnProviderFound = devService.ProviderFoundCallback
telemService.peripheralProvider = devService.GetDevices
return &Orchestrator{