From ca28d423970f2cc6b255123fa8e0cda45d4ee5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20A=2EP?= <53834183+Jossec101@users.noreply.github.com> Date: Tue, 8 Aug 2023 19:45:41 +0200 Subject: [PATCH] fix(telemetry.go): remove unnecessary initialization of channelBalanceGauge metric to 0 to clean up code and improve performance (#43) --- telemetry.go | 1 - 1 file changed, 1 deletion(-) diff --git a/telemetry.go b/telemetry.go index 50e6722..016f406 100644 --- a/telemetry.go +++ b/telemetry.go @@ -71,7 +71,6 @@ func initMetrics(reg prometheus.Registerer) { prometheusMetrics = m //Initialize all of them to 0 so they show up in /metrics - m.channelBalanceGauge.WithLabelValues("0", "0", "0", "0", "0", "0", "0").Set(0) m.onchainFees.WithLabelValues("0", "0", "0", "0", "0").Add(0) m.offchainFees.WithLabelValues("0", "0", "0", "0", "0").Add(0) m.providerFees.WithLabelValues("0", "0", "0", "0", "0").Add(0)