Skip to content

Commit

Permalink
(NOBIDS) Add missing price Init
Browse files Browse the repository at this point in the history
  • Loading branch information
recy21 committed Dec 3, 2023
1 parent 034db3e commit b3c0565
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/notification-collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit b3c0565

Please sign in to comment.