From 06540146524222f648d8b19c5bcb00a8fd3dd339 Mon Sep 17 00:00:00 2001 From: Tatsuya Shimoda Date: Tue, 5 Apr 2022 16:45:20 +0900 Subject: [PATCH] rpc: fixed a typo (#24642) --- rpc/handler.go | 2 +- rpc/metrics.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/handler.go b/rpc/handler.go index 488a29300..e8d1887c7 100644 --- a/rpc/handler.go +++ b/rpc/handler.go @@ -341,7 +341,7 @@ func (h *handler) handleCall(cp *callProc, msg *jsonrpcMessage) *jsonrpcMessage if callb != h.unsubscribeCb { rpcRequestGauge.Inc(1) if answer.Error != nil { - failedReqeustGauge.Inc(1) + failedRequestGauge.Inc(1) } else { successfulRequestGauge.Inc(1) } diff --git a/rpc/metrics.go b/rpc/metrics.go index 7fb6fc0a1..4f166ad1c 100644 --- a/rpc/metrics.go +++ b/rpc/metrics.go @@ -25,7 +25,7 @@ import ( var ( rpcRequestGauge = metrics.NewRegisteredGauge("rpc/requests", nil) successfulRequestGauge = metrics.NewRegisteredGauge("rpc/success", nil) - failedReqeustGauge = metrics.NewRegisteredGauge("rpc/failure", nil) + failedRequestGauge = metrics.NewRegisteredGauge("rpc/failure", nil) rpcServingTimer = metrics.NewRegisteredTimer("rpc/duration/all", nil) )