Commit 35eec22
authored
fix: capture Run() error in metrics controller goroutine (#330)
The goroutine was referencing the outer 'err' variable from
metrics.NewController() instead of capturing the return value
from metricsController.Run(). By the time the goroutine executes,
the outer err is nil (NewController succeeded), so the log line
always printed a nil error — making failures impossible to diagnose.
Fixes #3251 parent c6c7386 commit 35eec22
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
| 281 | + | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
0 commit comments