[#607] ir: Work with AddressGroup instead of single Address

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-06-22 18:34:44 +03:00 committed by Leonard Lyubich
parent 9033cf5aa1
commit f7b42a1525
3 changed files with 13 additions and 14 deletions

View file

@ -118,9 +118,9 @@ func (ap *Processor) findStorageGroups(cid *cid.ID, shuffled netmap.Nodes) []*ob
zap.Int("total_tries", ln),
)
var netAddr network.Address
var netAddr network.AddressGroup
err := netAddr.FromString(shuffled[i].Address())
err := netAddr.FromIterator(shuffled[i])
if err != nil {
log.Warn("can't parse remote address", zap.String("error", err.Error()))