fix_: fallback to cache for token market values when calling GetWalletToken

This commit is contained in:
Sean Hagstrom 2024-09-13 12:21:05 +01:00
parent b4fe4c9085
commit 974b92c730
No known key found for this signature in database
GPG Key ID: 5257FEDF56307320

View File

@ -501,9 +501,9 @@ func (r *Reader) GetWalletToken(ctx context.Context, clients map[uint64]chain.Cl
})
group.Add(func(parent context.Context) error {
tokenMarketValues, err = r.marketManager.FetchTokenMarketValues(tokenSymbols, currency)
tokenMarketValues, err = r.marketManager.GetOrFetchTokenMarketValues(tokenSymbols, currency, 60)
if err != nil {
log.Info("marketManager.FetchTokenMarketValues err", err)
log.Info("marketManager.GetOrFetchTokenMarketValues err", err)
}
return nil
})