Skip to content

Commit

Permalink
dont fail the entire provider when one asset is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
zarazan committed Sep 12, 2023
1 parent 5962b49 commit 2201d78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ func (o *Oracle) SetPrices(ctx context.Context) error {
for _, pair := range currencyPairs {
success := SetProviderTickerPricesAndCandles(providerName, providerPrices, providerCandles, prices, candles, pair)
if !success {
mtx.Unlock()
return fmt.Errorf("failed to find any exchange rates in provider responses")
o.logger.Err(fmt.Errorf("failed to find any ticker or candle data for %s from %s", pair, providerName)).Send()
}
}

Expand Down

0 comments on commit 2201d78

Please sign in to comment.