Fix scanner usage without error handling
This commit is contained in:
parent
d1dfda86ee
commit
084e585c2a
11 changed files with 33 additions and 38 deletions
|
|
@ -158,5 +158,5 @@ func (c *statCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
|||
ch <- prometheus.MustNewConstMetric(c.procsBlocked, prometheus.GaugeValue, value)
|
||||
}
|
||||
}
|
||||
return err
|
||||
return scanner.Err()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue