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
|
@ -40,7 +40,7 @@ func copyVectors(v []netmap.Nodes) []netmap.Nodes {
|
|||
|
||||
func testPlacement(t *testing.T, ss, rs []int) ([]netmap.Nodes, *container.Container) {
|
||||
nodes := make([]netmap.Nodes, 0, len(rs))
|
||||
replicas := make([]*netmap.Replica, 0, len(rs))
|
||||
replicas := make([]netmap.Replica, 0, len(rs))
|
||||
num := uint32(0)
|
||||
|
||||
for i := range ss {
|
||||
|
@ -53,7 +53,7 @@ func testPlacement(t *testing.T, ss, rs []int) ([]netmap.Nodes, *container.Conta
|
|||
|
||||
nodes = append(nodes, netmap.NodesFromInfo(ns))
|
||||
|
||||
s := new(netmap.Replica)
|
||||
var s netmap.Replica
|
||||
s.SetCount(uint32(rs[i]))
|
||||
|
||||
replicas = append(replicas, s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue