Commit f4c1adf
committed
fix: capture Run() error in metrics controller goroutine
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 0974487 commit f4c1adf
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
291 | 295 | | |
292 | 296 | | |
293 | | - | |
| 297 | + | |
294 | 298 | | |
295 | 299 | | |
296 | 300 | | |
| |||
0 commit comments