From 3930a4a2e64b820c158202891a85be30d1b1c21e Mon Sep 17 00:00:00 2001 From: clD11 <23483715+clD11@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:34:38 +0000 Subject: [PATCH] refactor: return error from new metric service --- services/wallet/metric/metric.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/services/wallet/metric/metric.go b/services/wallet/metric/metric.go index 3c8790f10..89a49dca7 100644 --- a/services/wallet/metric/metric.go +++ b/services/wallet/metric/metric.go @@ -1,8 +1,6 @@ package metric import ( - "fmt" - "github.com/prometheus/client_golang/prometheus" ) @@ -23,9 +21,9 @@ func New() (*Metric, error) { }, []string{status, countryCode}, ) - if err := prometheus.Register(clzp); err != nil { - return nil, fmt.Errorf("error registering count_link_zebpay: %w", err) - } + //if err := prometheus.Register(clzp); err != nil { + // return nil, fmt.Errorf("error registering count_link_zebpay: %w", err) + //} return &Metric{cntLinkZP: clzp}, nil }