move function

This commit is contained in:
Hector 2021-10-12 20:39:18 +01:00
parent 3302da1c92
commit 3e56339c71
2 changed files with 4 additions and 3 deletions

View File

@ -37,3 +37,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) {
c.collectFileErrors(ch) c.collectFileErrors(ch)
} }
} }
func (c *Collector) appendErrorForPath(path string) {
c.fileMap[path].readErrors++
}

View File

@ -19,6 +19,3 @@ func (c *Collector) WriteTextFileMetrics(w http.ResponseWriter, r *http.Request)
} }
} }
func (c *Collector) appendErrorForPath(path string) {
c.fileMap[path].readErrors++
}