From 25ce09bda204344de8b2ffec7d432fad26c0a72a Mon Sep 17 00:00:00 2001 From: Niko Korhonen <1004138+niktheblak@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:20:32 +0200 Subject: [PATCH] fix: do not close measurement channel --- pkg/scanner/measurements.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/scanner/measurements.go b/pkg/scanner/measurements.go index 731ed9e..031cae8 100644 --- a/pkg/scanner/measurements.go +++ b/pkg/scanner/measurements.go @@ -51,5 +51,4 @@ func (s *Measurements) scan(ctx context.Context, ch chan sensor.Data) { default: s.Logger.LogAttrs(ctx, slog.LevelError, "Scan failed", slog.Any("error", err)) } - close(ch) }