From ae64eddcc8018e5825242440a70e56144fecdabe Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Mon, 21 Feb 2022 14:50:53 +0100 Subject: [PATCH] Remove doubled import --- collectors/customCmdMetric.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/collectors/customCmdMetric.go b/collectors/customCmdMetric.go index 483d2ba..e978c49 100644 --- a/collectors/customCmdMetric.go +++ b/collectors/customCmdMetric.go @@ -9,7 +9,6 @@ import ( "strings" "time" - ccmetric "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric" lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric" influx "github.com/influxdata/line-protocol" ) @@ -99,7 +98,7 @@ func (m *CustomCmdCollector) Read(interval time.Duration, output chan lp.CCMetri continue } - y := ccmetric.FromInfluxMetric(c) + y := lp.FromInfluxMetric(c) if err == nil { output <- y } @@ -121,7 +120,7 @@ func (m *CustomCmdCollector) Read(interval time.Duration, output chan lp.CCMetri if skip { continue } - y := ccmetric.FromInfluxMetric(f) + y := lp.FromInfluxMetric(f) if err == nil { output <- y }