From 44b2f4a7878a9baa5c2c57df20d6b00befee2788 Mon Sep 17 00:00:00 2001 From: Nathan <122502194+NathanBSC@users.noreply.github.com> Date: Sun, 8 Oct 2023 10:19:38 +0800 Subject: [PATCH] metrics: fix missing miner-info, build-info and node-info (#1907) --- metrics/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/registry.go b/metrics/registry.go index ec6e37c54f..5261631402 100644 --- a/metrics/registry.go +++ b/metrics/registry.go @@ -191,7 +191,7 @@ func (r *StandardRegistry) Unregister(name string) { func (r *StandardRegistry) loadOrRegister(name string, i interface{}) (interface{}, bool, bool) { switch i.(type) { - case Counter, CounterFloat64, Gauge, GaugeFloat64, Healthcheck, Histogram, Meter, Timer, ResettingTimer: + case Counter, CounterFloat64, Gauge, GaugeFloat64, Healthcheck, Histogram, Meter, Timer, ResettingTimer, Label: default: return nil, false, false }