mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 08:50:09 +00:00
fix_: fallback to cache for token market values when calling GetWalletToken
This commit is contained in:
parent
b4fe4c9085
commit
974b92c730
@ -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
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user