Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-kim committed Sep 12, 2023
1 parent 95fca6d commit 2089a73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin/evm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ const (

// Prefixes for metrics gatherers
ethMetricsPrefix = "eth"
sdkMetricsPrefix = "sdk"
p2pMetricsPrefix = "p2p"
chainStateMetricsPrefix = "chain_state"
)

Expand Down Expand Up @@ -512,7 +510,7 @@ func (vm *VM) Initialize(
}

// initialize peer network
vm.router = p2p.NewRouter(vm.ctx.Log, appSender, vm.sdkMetrics, p2pMetricsPrefix)
vm.router = p2p.NewRouter(vm.ctx.Log, appSender, vm.sdkMetrics, "p2p")
vm.networkCodec = message.Codec
vm.Network = peer.NewNetwork(vm.router, appSender, vm.networkCodec, message.CrossChainCodec, chainCtx.NodeID, vm.config.MaxOutboundActiveRequests, vm.config.MaxOutboundActiveCrossChainRequests)
vm.client = peer.NewNetworkClient(vm.Network)
Expand Down Expand Up @@ -572,7 +570,7 @@ func (vm *VM) initializeMetrics() error {
if err := vm.multiGatherer.Register(ethMetricsPrefix, gatherer); err != nil {
return err
}
if err := vm.multiGatherer.Register(sdkMetricsPrefix, vm.sdkMetrics); err != nil {
if err := vm.multiGatherer.Register("sdk", vm.sdkMetrics); err != nil {
return err
}
// Register [multiGatherer] after registerers have been registered to it
Expand Down

0 comments on commit 2089a73

Please sign in to comment.