metrics: fix some typos (#25551)

This commit is contained in:
Daniel Liu 2024-12-13 14:00:12 +08:00
parent 392b44c948
commit e8452c94a7
4 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ package metrics
import "testing"
func BenchmarkGuageFloat64(b *testing.B) {
func BenchmarkGaugeFloat64(b *testing.B) {
g := NewGaugeFloat64()
b.ResetTimer()
for i := 0; i < b.N; i++ {

View file

@ -5,7 +5,7 @@ import (
"testing"
)
func BenchmarkGuage(b *testing.B) {
func BenchmarkGauge(b *testing.B) {
g := NewGauge()
b.ResetTimer()
for i := 0; i < b.N; i++ {

View file

@ -36,7 +36,7 @@ func Handler(reg metrics.Registry) http.Handler {
})
sort.Strings(names)
// Aggregate all the metris into a Prometheus collector
// Aggregate all the metrics into a Prometheus collector
c := newCollector()
for _, name := range names {

View file

@ -72,7 +72,7 @@ func TestUnconfirmedShifts(t *testing.T) {
if n := pool.blocks.Len(); n != int(limit)/2 {
t.Errorf("unconfirmed count mismatch: have %d, want %d", n, limit/2)
}
// Try to shift all the remaining blocks out and verify emptyness
// Try to shift all the remaining blocks out and verify emptiness
pool.Shift(start + 2*uint64(limit))
if n := pool.blocks.Len(); n != 0 {
t.Errorf("unconfirmed count mismatch: have %d, want %d", n, 0)