From ac5921fd6cbbfe0bd21223bac0e116fb787cf90c Mon Sep 17 00:00:00 2001 From: pingke Date: Fri, 1 Dec 2023 14:45:27 +0800 Subject: [PATCH] fix build --- ethstorage/p2p/node.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ethstorage/p2p/node.go b/ethstorage/p2p/node.go index 0e799836..b7b293c6 100644 --- a/ethstorage/p2p/node.go +++ b/ethstorage/p2p/node.go @@ -13,6 +13,7 @@ import ( "github.com/ethereum/go-ethereum/p2p/discover" "github.com/ethereum/go-ethereum/p2p/enode" "github.com/ethstorage/go-ethstorage/ethstorage" + me "github.com/ethstorage/go-ethstorage/ethstorage/metrics" "github.com/ethstorage/go-ethstorage/ethstorage/p2p/protocol" "github.com/ethstorage/go-ethstorage/ethstorage/rollup" "github.com/hashicorp/go-multierror" @@ -87,9 +88,9 @@ func (n *NodeP2P) init(resourcesCtx context.Context, rollupCfg *rollup.EsConfig, n.gater = extra.ConnectionGater() n.connMgr = extra.ConnectionManager() } - m := (protocol.Metricer)(nil) + m := (me.Metricer)(nil) if rollupCfg.MetricsEnable { - m = protocol.NewMetrics("sync") + m = me.NewMetrics("sync") } // Activate the P2P req-resp sync n.syncCl = protocol.NewSyncClient(log, rollupCfg, n.host.NewStream, storageManager, setup.SyncerParams(), db, m, feed)