Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ethstorage/es-node into build
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Dec 1, 2023
2 parents 86cb560 + 7457b4a commit 3f37f89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ethstorage/p2p/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3f37f89

Please sign in to comment.