diff --git a/rpc/handler.go b/rpc/handler.go index 488a29300a..e8d1887c7d 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 7fb6fc0a17..4f166ad1cc 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) )