fix(wallet)_: fixed disconnected event sent for all providers ignoring

type of error
This commit is contained in:
Ivan Belyakov 2024-05-27 17:48:19 +02:00 committed by IvanBelyakoff
parent 07de481b69
commit d2343ee03e
1 changed files with 0 additions and 6 deletions

View File

@ -409,9 +409,6 @@ func (r *Reader) getWalletTokenBalances(ctx context.Context, addresses []common.
if updateBalances || updateAnyway {
latestBalances, err = r.tokenManager.GetBalancesByChain(ctx, clients, addresses, tokenAddresses)
if err != nil {
for _, client := range clients {
client.SetIsConnected(false)
}
log.Info("tokenManager.GetBalancesByChain error", "err", err)
return nil, err
}
@ -554,9 +551,6 @@ func (r *Reader) GetWalletToken(ctx context.Context, addresses []common.Address)
balances, err := r.tokenManager.GetBalancesByChain(ctx, clients, addresses, tokenAddresses)
if err != nil {
for _, client := range clients {
client.SetIsConnected(false)
}
log.Info("tokenManager.GetBalancesByChain error", "err", err)
return nil, err
}