Skip to content

Commit 988465c

Browse files
committed
metrics: fix mismatched names in comments (ethereum#29348)
1 parent c7565af commit 988465c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

metrics/gauge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (g *StandardGauge) Update(v int64) {
7474
g.value.Store(v)
7575
}
7676

77-
// Update updates the gauge's value if v is larger then the current value.
77+
// UpdateIfGt updates the gauge's value if v is larger then the current value.
7878
func (g *StandardGauge) UpdateIfGt(v int64) {
7979
for {
8080
exist := g.value.Load()

metrics/meter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ type meterArbiter struct {
173173

174174
var arbiter = meterArbiter{ticker: time.NewTicker(5 * time.Second), meters: make(map[*StandardMeter]struct{})}
175175

176-
// Ticks meters on the scheduled interval
176+
// tick meters on the scheduled interval
177177
func (ma *meterArbiter) tick() {
178178
for range ma.ticker.C {
179179
ma.tickMeters()

metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var enablerFlags = []string{"metrics"}
3030
// enablerEnvVars is the env var names to use to enable metrics collections.
3131
var enablerEnvVars = []string{"XDC_METRICS"}
3232

33-
// Init enables or disables the metrics system. Since we need this to run before
33+
// init enables or disables the metrics system. Since we need this to run before
3434
// any other code gets to create meters and timers, we'll actually do an ugly hack
3535
// and peek into the command line args for the metrics flag.
3636
func init() {

0 commit comments

Comments
 (0)