postfix_exporter.go: Comment out unused CollectShowqFromFile
function
See,
$ gometalinter --vendor ./...
postfix_exporter.go:256:1⚠️ CollectShowqFromFile is unused
(deadcode)
This commit is contained in:
parent
b22b536722
commit
76f8dd448b
@ -252,14 +252,14 @@ func CollectBinaryShowqFromReader(file io.Reader, ch chan<- prometheus.Metric) e
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CollectShowqFromFile collects Postfix queue statistics from a file.
|
// CollectShowqFromFile collects Postfix queue statistics from a file.
|
||||||
func CollectShowqFromFile(path string, ch chan<- prometheus.Metric) error {
|
//func CollectShowqFromFile(path string, ch chan<- prometheus.Metric) error {
|
||||||
fd, err := os.Open(path)
|
// fd, err := os.Open(path)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
return err
|
// return err
|
||||||
}
|
// }
|
||||||
defer fd.Close()
|
// defer fd.Close()
|
||||||
return CollectShowqFromReader(fd, ch)
|
// return CollectShowqFromReader(fd, ch)
|
||||||
}
|
//}
|
||||||
|
|
||||||
// CollectShowqFromSocket collects Postfix queue statistics from a socket.
|
// CollectShowqFromSocket collects Postfix queue statistics from a socket.
|
||||||
func CollectShowqFromSocket(path string, ch chan<- prometheus.Metric) error {
|
func CollectShowqFromSocket(path string, ch chan<- prometheus.Metric) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user