forked from TrueCloudLab/frostfs-node
[#1238] Adopt neofs-node for non pointer slices in SDK
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
9fad29dfe0
commit
8f476f3c4d
41 changed files with 146 additions and 148 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue