Skip to content

Commit

Permalink
Change usage of Config in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan committed Jan 21, 2025
1 parent 47687be commit 326e01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/v1/service/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (s *V1Service) GetOverallStats(

// Only fetch BTC price if ExternalAPIs are configured
var btcPrice *float64
if s.cfg.ExternalAPIs != nil && s.cfg.ExternalAPIs.CoinMarketCap != nil {
if s.Cfg.ExternalAPIs != nil && s.Cfg.ExternalAPIs.CoinMarketCap != nil {
price, err := s.GetLatestBtcPriceUsd(ctx)
if err != nil {
log.Ctx(ctx).Error().Err(err).Msg("error while fetching latest btc price")
Expand Down

0 comments on commit 326e01d

Please sign in to comment.