Ignore temperature readings when no consumers are present
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Søren Rasmussen 2022-07-24 01:26:22 +02:00
parent 56d33782c8
commit 5b3f7708c0

View file

@ -167,7 +167,10 @@ func readSensors(hub *sentry.Hub) {
metrics.TemperatureSensorReadingStatus.WithLabelValues(sensor.Name, "ok").Inc()
}
Reading <- r
select {
case Reading <- r:
default:
}
}
func triggerBulkRead() error {