Skip to content

Commit

Permalink
silently fail
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Dec 4, 2024
1 parent 918c009 commit 2642299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (s *Services) GetOverallStats(
price, err := s.GetLatestBtcPriceUsd(ctx)
if err != nil {
log.Ctx(ctx).Error().Err(err).Msg("error while fetching latest btc price")
return nil, types.NewInternalServiceError(err)
btcPrice = nil
}
roundedPrice := math.Round(price*100) / 100
btcPrice = &roundedPrice
Expand Down

0 comments on commit 2642299

Please sign in to comment.