File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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.
7878func (g * StandardGauge ) UpdateIfGt (v int64 ) {
7979 for {
8080 exist := g .value .Load ()
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ type meterArbiter struct {
173173
174174var 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
177177func (ma * meterArbiter ) tick () {
178178 for range ma .ticker .C {
179179 ma .tickMeters ()
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ var enablerFlags = []string{"metrics"}
3030// enablerEnvVars is the env var names to use to enable metrics collections.
3131var 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.
3636func init () {
You can’t perform that action at this time.
0 commit comments