From b3c05657371646f8ba0ba3555f1e20580c20e11b Mon Sep 17 00:00:00 2001 From: recy21 Date: Sun, 3 Dec 2023 13:22:25 +0100 Subject: [PATCH] (NOBIDS) Add missing price Init --- cmd/notification-collector/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/notification-collector/main.go b/cmd/notification-collector/main.go index d3beb6b826..a1c4a25dd6 100644 --- a/cmd/notification-collector/main.go +++ b/cmd/notification-collector/main.go @@ -4,6 +4,7 @@ import ( "eth2-exporter/cache" "eth2-exporter/db" "eth2-exporter/metrics" + "eth2-exporter/price" "eth2-exporter/services" "eth2-exporter/types" "eth2-exporter/utils" @@ -124,6 +125,10 @@ func main() { }() } + logrus.Infof("initializing prices...") + price.Init(utils.Config.Chain.ClConfig.DepositChainID, utils.Config.Eth1ErigonEndpoint, utils.Config.Frontend.ClCurrency, utils.Config.Frontend.ElCurrency) + logrus.Infof("...prices initialized") + wg.Wait() defer db.ReaderDb.Close()