Skip to content

Commit ca28d42

Browse files
authored
fix(telemetry.go): remove unnecessary initialization of channelBalanceGauge metric to 0 to clean up code and improve performance (#43)
1 parent ef94505 commit ca28d42

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

telemetry.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ func initMetrics(reg prometheus.Registerer) {
7171
prometheusMetrics = m
7272

7373
//Initialize all of them to 0 so they show up in /metrics
74-
m.channelBalanceGauge.WithLabelValues("0", "0", "0", "0", "0", "0", "0").Set(0)
7574
m.onchainFees.WithLabelValues("0", "0", "0", "0", "0").Add(0)
7675
m.offchainFees.WithLabelValues("0", "0", "0", "0", "0").Add(0)
7776
m.providerFees.WithLabelValues("0", "0", "0", "0", "0").Add(0)

0 commit comments

Comments
 (0)