Skip to content

Commit 58fb1c3

Browse files
gzliudanJukLee0ira
authored andcommitted
metrics: fix some typos (ethereum#25551)
1 parent b685c43 commit 58fb1c3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

metrics/gauge_float64_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package metrics
22

33
import "testing"
44

5-
func BenchmarkGuageFloat64(b *testing.B) {
5+
func BenchmarkGaugeFloat64(b *testing.B) {
66
g := NewGaugeFloat64()
77
b.ResetTimer()
88
for i := 0; i < b.N; i++ {

metrics/gauge_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
)
77

8-
func BenchmarkGuage(b *testing.B) {
8+
func BenchmarkGauge(b *testing.B) {
99
g := NewGauge()
1010
b.ResetTimer()
1111
for i := 0; i < b.N; i++ {

metrics/prometheus/prometheus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func Handler(reg metrics.Registry) http.Handler {
3636
})
3737
sort.Strings(names)
3838

39-
// Aggregate all the metris into a Prometheus collector
39+
// Aggregate all the metrics into a Prometheus collector
4040
c := newCollector()
4141

4242
for _, name := range names {

miner/unconfirmed_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestUnconfirmedShifts(t *testing.T) {
7272
if n := pool.blocks.Len(); n != int(limit)/2 {
7373
t.Errorf("unconfirmed count mismatch: have %d, want %d", n, limit/2)
7474
}
75-
// Try to shift all the remaining blocks out and verify emptyness
75+
// Try to shift all the remaining blocks out and verify emptiness
7676
pool.Shift(start + 2*uint64(limit))
7777
if n := pool.blocks.Len(); n != 0 {
7878
t.Errorf("unconfirmed count mismatch: have %d, want %d", n, 0)

0 commit comments

Comments
 (0)