Skip to content

Commit

Permalink
fix: start event mgr at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Apr 18, 2024
1 parent 472f39d commit af3d1a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ func NewNode(opts *Options) (*Node, error) {
contracts,
)

evtMgrDone := evtMgr.Start(ctx)

var listenerL1Client l1Listener.EthClient

listenerL1Client = l1Client
Expand Down Expand Up @@ -242,6 +240,9 @@ func NewNode(opts *Options) (*Node, error) {
evtMgr,
st,
)

evtMgrDone := evtMgr.Start(ctx)

srv.RegisterMetricsCollectors(l1Lis.Metrics()...)
srv.RegisterMetricsCollectors(updtr.Metrics()...)
srv.RegisterMetricsCollectors(settlr.Metrics()...)
Expand Down

0 comments on commit af3d1a3

Please sign in to comment.