forked from TrueCloudLab/frostfs-node
[#1063] go.mod: Update SDK version
* Update frostfs-sdk and frostfs-api-go versions. * Refactor depreacted method ReplicaNumberByIndex. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
ff4c23f59a
commit
4738508ce2
7 changed files with 12 additions and 12 deletions
|
@ -137,7 +137,7 @@ func defaultCopiesVector(policy netmap.PlacementPolicy) []int {
|
|||
copyVector := make([]int, 0, replNum)
|
||||
|
||||
for i := 0; i < replNum; i++ {
|
||||
copyVector = append(copyVector, int(policy.ReplicaNumberByIndex(i)))
|
||||
copyVector = append(copyVector, int(policy.ReplicaDescriptor(i).NumberOfObjects()))
|
||||
}
|
||||
|
||||
return copyVector
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue