network/cache: Add node address to error multiClient #1562

Merged
fyrchik merged 1 commit from achuprov/frostfs-node:feat/multinet_err2 into master 2024-12-19 06:45:33 +00:00

View file

@ -155,7 +155,7 @@ func (x *multiClient) iterateClients(ctx context.Context, f func(clientcore.Clie
group.IterateAddresses(func(addr network.Address) bool { group.IterateAddresses(func(addr network.Address) bool {
select { select {
case <-ctx.Done(): case <-ctx.Done():
firstErr = context.Canceled firstErr = fmt.Errorf("try %v: %w", addr, context.Canceled)
achuprov marked this conversation as resolved Outdated

This error doesn't seem to be client connection error as you're not establishing any connection yet at this moment - this is performed below.

So, how about?

firstErr = fmt.Errorf("unable to proceed with client iteration at %v: %w", addr, context.Canceled)
This error doesn't seem to be `client connection` error as you're not establishing any connection yet at this moment - this is performed below. So, how about? ```go firstErr = fmt.Errorf("unable to proceed with client iteration at %v: %w", addr, context.Canceled) ```

How about just try %v: %w?

How about just `try %v: %w`?

@fyrchik fixed

@fyrchik fixed
return true return true
default: default:
} }