From 5c8407b77252b0f0759f8f7e2747d50bc2209b73 Mon Sep 17 00:00:00 2001 From: t-falconnet Date: Fri, 11 Feb 2022 17:06:53 +0100 Subject: [PATCH] ethtool-linux: fix entry function Signed-off-by: t-falconnet --- collector/ethtool_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/ethtool_linux.go b/collector/ethtool_linux.go index b7b413fc..04a7260d 100644 --- a/collector/ethtool_linux.go +++ b/collector/ethtool_linux.go @@ -446,7 +446,7 @@ func (c *ethtoolCollector) entryWithCreate(key, metricFQName string) *prometheus return c.entries[key] } -func (c *ethtoolCollector) entry(key) *prometheus.Desc { +func (c *ethtoolCollector) entry(key string) *prometheus.Desc { c.entriesMutex.Lock() defer c.entriesMutex.Unlock() return c.entries[key]