Skip to content

Commit

Permalink
refactor: return error from new metric service
Browse files Browse the repository at this point in the history
  • Loading branch information
clD11 committed Dec 13, 2023
1 parent 3c80198 commit 3930a4a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions services/wallet/metric/metric.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package metric

import (
"fmt"

"github.com/prometheus/client_golang/prometheus"
)

Expand All @@ -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
}
Expand Down

0 comments on commit 3930a4a

Please sign in to comment.