forked from TrueCloudLab/frostfs-node
[#1342] network/cache: Add node address to error multiClient
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
226dd25dd0
commit
51ee132ea3
1 changed files with 1 additions and 1 deletions
2
pkg/network/cache/multi.go
vendored
2
pkg/network/cache/multi.go
vendored
|
@ -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)
|
||||||
return true
|
return true
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue