Skip to content

Commit

Permalink
fix: telemetry metric label variable (cosmos#18643)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamweaverxyz authored Dec 6, 2023
1 parent 0b907e8 commit 1ffe7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telemetry/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ func New(cfg Config) (_ *Metrics, rerr error) {
return nil, nil
}

if numGlobalLables := len(cfg.GlobalLabels); numGlobalLables > 0 {
parsedGlobalLabels := make([]metrics.Label, numGlobalLables)
if numGlobalLabels := len(cfg.GlobalLabels); numGlobalLabels > 0 {
parsedGlobalLabels := make([]metrics.Label, numGlobalLabels)
for i, gl := range cfg.GlobalLabels {
parsedGlobalLabels[i] = NewLabel(gl[0], gl[1])
}
Expand Down

0 comments on commit 1ffe7d5

Please sign in to comment.