From 2920239294f259b2a2afae12d216c8ff9a2efeaf Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 08:19:59 -0600 Subject: [PATCH] fix: Don't fail the entire provider when one asset is missing (backport #262) (#264) * fix: Don't fail the entire provider when one asset is missing (#262) * dont fail the entire provider when one asset is missing (cherry picked from commit 54b49cd8b022367679182c72a2b3374b12b280fb) # Conflicts: # ojo-provider-config/endpoints.toml * backport merge conflict --------- Co-authored-by: Kyle --- oracle/oracle.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oracle/oracle.go b/oracle/oracle.go index 07698af0..402efc0c 100644 --- a/oracle/oracle.go +++ b/oracle/oracle.go @@ -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() } }