clean up a bit the logic of how we get to know whether the telemetry started on devices lookup
This commit is contained in:
@@ -26,9 +26,6 @@ func (t *TelemetryService) onFindProvider(prov telem.TelemetryProvider) {
|
||||
// Start the healthcheck on our provider so we can drop it if it stops
|
||||
t.CtxHealthcheck, t.healthCheckCancel = context.WithCancel(context.Background())
|
||||
go t.ProviderMonitor(t.CtxHealthcheck)
|
||||
|
||||
// Tell the devices service we got a provider
|
||||
t.OnProviderFound(prov.Name())
|
||||
}
|
||||
|
||||
func (t *TelemetryService) onProviderStopsMidStream() {
|
||||
|
||||
Reference in New Issue
Block a user