Fix ineffassign issue

Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
This commit is contained in:
Hu Shuai 2021-02-08 10:53:12 +08:00
parent 0e74fbcd5f
commit 4109a5089f
1 changed files with 3 additions and 0 deletions

View File

@ -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,