diff --git a/rpc/clients.go b/rpc/clients.go index 10d71db..0119f74 100644 --- a/rpc/clients.go +++ b/rpc/clients.go @@ -38,7 +38,8 @@ func WithClients[C any, V any](clients *Clients[C], f func(C) (v V, err error)) for { client, err := clients.Next() if err != nil { - return v, err + errs = multierror.Append(errs, err) + return v, errs } v, err := f(client) if err != nil {