Browse Source

Merge pull request #1957 from hs0210/work

Fix ineffassign issue
pull/1964/head
Ben Kochie 4 years ago committed by GitHub
parent
commit
a4dfffbd77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      collector/zfs_solaris.go

3
collector/zfs_solaris.go

@ -299,6 +299,9 @@ func (c *zfsCollector) updateZfsFetchStats(ch chan<- prometheus.Metric) error {
defer tok.Close()
ksZFSInfo, err := tok.Lookup("zfs", 0, "zfetchstats")
if err != nil {
return err
}
for k, v := range map[string]*prometheus.Desc{
"hits": c.zfetchstatsHits,

Loading…
Cancel
Save