Fix ineffassign issue
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>pull/1957/head
parent
0e74fbcd5f
commit
4109a5089f
|
@ -299,6 +299,9 @@ func (c *zfsCollector) updateZfsFetchStats(ch chan<- prometheus.Metric) error {
|
||||||
defer tok.Close()
|
defer tok.Close()
|
||||||
|
|
||||||
ksZFSInfo, err := tok.Lookup("zfs", 0, "zfetchstats")
|
ksZFSInfo, err := tok.Lookup("zfs", 0, "zfetchstats")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
for k, v := range map[string]*prometheus.Desc{
|
for k, v := range map[string]*prometheus.Desc{
|
||||||
"hits": c.zfetchstatsHits,
|
"hits": c.zfetchstatsHits,
|
||||||
|
|
Loading…
Reference in New Issue