[#1238] Adopt neofs-node for non pointer slices in SDK

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-15 15:11:35 +03:00 committed by Alex Vanin
parent 9fad29dfe0
commit 8f476f3c4d
41 changed files with 146 additions and 148 deletions

View file

@ -126,9 +126,9 @@ func (s *morphExecutor) List(ctx context.Context, body *container.ListRequestBod
return nil, err
}
cidList := make([]*refs.ContainerID, 0, len(cnrs))
cidList := make([]refs.ContainerID, len(cnrs))
for i := range cnrs {
cidList = append(cidList, cnrs[i].ToV2())
cidList[i] = *cnrs[i].ToV2()
}
res := new(container.ListResponseBody)