ethtool-linux: fix entry function

Signed-off-by: t-falconnet <tfalconnet.externe@bedrockstreaming.com>
This commit is contained in:
t-falconnet 2022-02-11 17:06:53 +01:00
parent db87173be0
commit 5c8407b772

View File

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