From 225faa3917a8ed47b4701291109d8ec57816ec0b Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 20 Mar 2024 14:27:43 +0800 Subject: [PATCH] fix: typos Signed-off-by: guoguangwu --- auth/jwt/transport.go | 2 +- metrics/cloudwatch/cloudwatch.go | 2 +- metrics/dogstatsd/dogstatsd.go | 2 +- metrics/influx/influx.go | 2 +- metrics/influxstatsd/influxstatsd.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/auth/jwt/transport.go b/auth/jwt/transport.go index e7d19c180..a23faa475 100644 --- a/auth/jwt/transport.go +++ b/auth/jwt/transport.go @@ -43,7 +43,7 @@ func ContextToHTTP() http.RequestFunc { } // GRPCToContext moves a JWT from grpc metadata to context. Particularly -// userful for servers. +// useful for servers. func GRPCToContext() grpc.ServerRequestFunc { return func(ctx context.Context, md metadata.MD) context.Context { // capital "Key" is illegal in HTTP/2. diff --git a/metrics/cloudwatch/cloudwatch.go b/metrics/cloudwatch/cloudwatch.go index 491b54e92..8e25f49ec 100644 --- a/metrics/cloudwatch/cloudwatch.go +++ b/metrics/cloudwatch/cloudwatch.go @@ -327,7 +327,7 @@ func (g *Gauge) Add(delta float64) { g.add(g.name, g.lvs, delta) } -// Histogram is an Influx histrogram. Observations are aggregated into a +// Histogram is an Influx histogram. Observations are aggregated into a // generic.Histogram and emitted as per-quantile gauges to the Influx server. type Histogram struct { name string diff --git a/metrics/dogstatsd/dogstatsd.go b/metrics/dogstatsd/dogstatsd.go index 0cd19bc41..e17e31805 100644 --- a/metrics/dogstatsd/dogstatsd.go +++ b/metrics/dogstatsd/dogstatsd.go @@ -324,7 +324,7 @@ func (t *Timing) Observe(value float64) { t.obs(t.name, t.lvs, value) } -// Histogram is a DogStatsD histrogram. Observations are forwarded to a +// Histogram is a DogStatsD histogram. Observations are forwarded to a // Dogstatsd object, and collected (but not aggregated) per timeseries. type Histogram struct { name string diff --git a/metrics/influx/influx.go b/metrics/influx/influx.go index eda2f226a..496dcc538 100644 --- a/metrics/influx/influx.go +++ b/metrics/influx/influx.go @@ -250,7 +250,7 @@ func (g *Gauge) Add(delta float64) { g.add(g.name, g.lvs, delta) } -// Histogram is an Influx histrogram. Observations are aggregated into a +// Histogram is an Influx histogram. Observations are aggregated into a // generic.Histogram and emitted as per-quantile gauges to the Influx server. type Histogram struct { name string diff --git a/metrics/influxstatsd/influxstatsd.go b/metrics/influxstatsd/influxstatsd.go index 506f2b1eb..8600f8662 100644 --- a/metrics/influxstatsd/influxstatsd.go +++ b/metrics/influxstatsd/influxstatsd.go @@ -310,7 +310,7 @@ func (t *Timing) Observe(value float64) { t.obs(t.name, t.lvs, value) } -// Histogram is a InfluxStatsD histrogram. Observations are forwarded to a +// Histogram is a InfluxStatsD histogram. Observations are forwarded to a // Influxstatsd object, and collected (but not aggregated) per timeseries. type Histogram struct { name string