Skip to content

Commit

Permalink
metrics: replace strings.Replace with string.ReplaceAll (ethereum#24835)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan authored and JukLee0ira committed Dec 16, 2024
1 parent ee9e691 commit 7031b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/prometheus/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ func (c *collector) writeSummaryPercentile(name, p string, value interface{}) {
}

func mutateKey(key string) string {
return strings.Replace(key, "/", "_", -1)
return strings.ReplaceAll(key, "/", "_")
}

0 comments on commit 7031b79

Please sign in to comment.