Skip to content

Commit

Permalink
fix(telemetry.go): remove unnecessary initialization of channelBalanc…
Browse files Browse the repository at this point in the history
…eGauge metric to 0 to clean up code and improve performance (#43)
  • Loading branch information
Jossec101 authored Aug 8, 2023
1 parent ef94505 commit ca28d42
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca28d42

Please sign in to comment.