Cleanup uname Update call (#1342)

Make collector a pointer for consistency.

Fixes: https://github.com/prometheus/node_exporter/issues/1300

Signed-off-by: Ben Kochie <superq@gmail.com>
pull/1345/head
Ben Kochie 2019-05-13 11:44:12 -05:00 committed by GitHub
parent 8b13c130b7
commit f10c665d33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func newUnameCollector() (Collector, error) {
return &unameCollector{}, nil
}
func (c unameCollector) Update(ch chan<- prometheus.Metric) error {
func (c *unameCollector) Update(ch chan<- prometheus.Metric) error {
uname, err := getUname()
if err != nil {
return err