move function
This commit is contained in:
parent
3302da1c92
commit
3e56339c71
@ -37,3 +37,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) {
|
||||
c.collectFileErrors(ch)
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Collector) appendErrorForPath(path string) {
|
||||
c.fileMap[path].readErrors++
|
||||
}
|
||||
|
@ -19,6 +19,3 @@ func (c *Collector) WriteTextFileMetrics(w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Collector) appendErrorForPath(path string) {
|
||||
c.fileMap[path].readErrors++
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user