Skip to content

Commit

Permalink
fix: do not close measurement channel
Browse files Browse the repository at this point in the history
  • Loading branch information
niktheblak committed Dec 16, 2024
1 parent 43b2356 commit 25ce09b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/scanner/measurements.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 25ce09b

Please sign in to comment.