[#1342] network/cache: Add node address to error multiClient
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 2m32s
DCO action / DCO (pull_request) Successful in 2m50s
Tests and linters / Staticcheck (pull_request) Successful in 4m10s
Tests and linters / Lint (pull_request) Successful in 7m21s
Vulncheck / Vulncheck (pull_request) Successful in 11m51s
Build / Build Components (pull_request) Successful in 12m33s
Tests and linters / Tests (pull_request) Successful in 13m2s
Tests and linters / Tests with -race (pull_request) Successful in 13m20s
Pre-commit hooks / Pre-commit (pull_request) Successful in 13m24s
Tests and linters / gopls check (pull_request) Successful in 14m4s

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2024-12-18 19:27:14 +03:00
parent d165ac042c
commit b0ccf592be
Signed by: achuprov
GPG key ID: 2D916FFD803B0EDD

View file

@ -155,7 +155,7 @@ func (x *multiClient) iterateClients(ctx context.Context, f func(clientcore.Clie
group.IterateAddresses(func(addr network.Address) bool {
select {
case <-ctx.Done():
firstErr = context.Canceled
firstErr = fmt.Errorf("try %v: %w", addr, context.Canceled)
return true
default:
}