Skip to content

Commit

Permalink
chore: fix compile 2
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Sep 21, 2023
1 parent 44e358e commit 0664e08
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ func (m *Manager) SetDefaultMetrics(chain *configTypes.Chain) {
Add(0)
}

for _, node := range chain.APINodes {
m.successfulQueriesCollector.
With(prometheus.Labels{"chain": chain.Name, "node": node}).
Add(0)

m.failedQueriesCollector.
With(prometheus.Labels{"chain": chain.Name, "node": node}).
Add(0)
}
//for _, node := range chain.APINodes {
// m.successfulQueriesCollector.
// With(prometheus.Labels{"chain": chain.Name, "node": node}).
// Add(0)
//
// m.failedQueriesCollector.
// With(prometheus.Labels{"chain": chain.Name, "node": node}).
// Add(0)
//}
}

func (m *Manager) Start() {
Expand Down

0 comments on commit 0664e08

Please sign in to comment.