forked from TrueCloudLab/frostfs-node
[#607] ir: Work with AddressGroup instead of single Address
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9033cf5aa1
commit
f7b42a1525
3 changed files with 13 additions and 14 deletions
|
@ -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()))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue