diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e930e11..56310cb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Changelog for NeoFS Node - Require SG members to be unique (#1490) - `neofs-cli` now doesn't remove container with LOCK objects without `--force` flag (#1500) - `morph` sections in IR and storage node configuration now accept an address and a priority of an endpoint (#1609) +- Morph client now retries connecting to the failed endpoint too (#1609) ### Fixed diff --git a/pkg/morph/client/multi.go b/pkg/morph/client/multi.go index e72a3915..0a5d8dc6 100644 --- a/pkg/morph/client/multi.go +++ b/pkg/morph/client/multi.go @@ -34,12 +34,7 @@ func (c *Client) switchRPC() bool { // Iterate endpoints in the order of decreasing priority. // Skip the current endpoint. - last := c.endpoints.curr for c.endpoints.curr = range c.endpoints.list { - if c.endpoints.curr == last { - continue - } - newEndpoint := c.endpoints.list[c.endpoints.curr].Address cli, err := newWSClient(c.cfg, newEndpoint) if err != nil {