Skip to content

Commit

Permalink
fix: change how stale rates are returned
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed May 6, 2024
1 parent c3e65b6 commit d9dd9bf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,11 @@ class ExchangeRatesRepository @Inject constructor(
} else {
false
}
val retrievalError = config.get(EXCHANGE_RATES_RETRIEVAL_FAILURE) ?: false
RateRetrievalState(
config.get(EXCHANGE_RATES_RETRIEVAL_FAILURE) ?: false,
retrievalError,
staleRate,
volatile
if (retrievalError || staleRate) false else volatile
)
}
.catch {
Expand Down

0 comments on commit d9dd9bf

Please sign in to comment.