From af3d1a3eb6e3a701f1b2835533947baabdc73357 Mon Sep 17 00:00:00 2001 From: Alok Date: Fri, 19 Apr 2024 01:30:35 +0530 Subject: [PATCH] fix: start event mgr at the end --- pkg/node/node.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/node/node.go b/pkg/node/node.go index 34be359..4f0d625 100644 --- a/pkg/node/node.go +++ b/pkg/node/node.go @@ -122,8 +122,6 @@ func NewNode(opts *Options) (*Node, error) { contracts, ) - evtMgrDone := evtMgr.Start(ctx) - var listenerL1Client l1Listener.EthClient listenerL1Client = l1Client @@ -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()...)