Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Jul 1, 2024
1 parent 09e4b2f commit ac3c638
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p2p/protocol/autonatv2/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type MetricsTracer interface {
const metricNamespace = "libp2p_autonatv2"

var (
requestsComplted = prometheus.NewCounterVec(
requestsCompleted = prometheus.NewCounterVec(
prometheus.CounterOpts{
Namespace: metricNamespace,
Name: "requests_completed_total",
Expand All @@ -28,7 +28,7 @@ type metricsTracer struct {
}

func NewMetricsTracer(reg prometheus.Registerer) MetricsTracer {
metricshelper.RegisterCollectors(reg, requestsComplted)
metricshelper.RegisterCollectors(reg, requestsCompleted)
return &metricsTracer{}
}

Expand Down Expand Up @@ -57,7 +57,7 @@ func (m *metricsTracer) CompletedRequest(e EventDialRequestCompleted) {
ip,
transport,
)
requestsComplted.WithLabelValues(*labels...).Inc()
requestsCompleted.WithLabelValues(*labels...).Inc()
}

func getIPOrDNSVersion(a ma.Multiaddr) string {
Expand Down

0 comments on commit ac3c638

Please sign in to comment.