From 342a528f81b48a5232a39ff4b4270e5383a3c568 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Mon, 21 Nov 2022 13:33:48 -0500 Subject: [PATCH] remove unused metrics method --- consensus/metrics.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/consensus/metrics.go b/consensus/metrics.go index 48d1a603b..6bab7759b 100644 --- a/consensus/metrics.go +++ b/consensus/metrics.go @@ -7,7 +7,6 @@ import ( "github.com/go-kit/kit/metrics" "github.com/go-kit/kit/metrics/discard" cstypes "github.com/tendermint/tendermint/consensus/types" - "github.com/tendermint/tendermint/types" prometheus "github.com/go-kit/kit/metrics/prometheus" stdprometheus "github.com/prometheus/client_golang/prometheus" @@ -290,14 +289,6 @@ func NopMetrics() *Metrics { } } -// RecordConsMetrics uses for recording the block related metrics during fast-sync. -func (m *Metrics) RecordConsMetrics(block *types.Block) { - m.NumTxs.Set(float64(len(block.Data.Txs))) - m.TotalTxs.Add(float64(len(block.Data.Txs))) - m.BlockSizeBytes.Set(float64(block.Size())) - m.CommittedHeight.Set(float64(block.Height)) -} - func (m *Metrics) MarkRound(r int32, st time.Time) { m.Rounds.Set(float64(r)) roundTime := time.Since(st).Seconds()