forked from TrueCloudLab/frostfs-api-go
[#189] sdk: Fix type conflicts after netmap package refactoring
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9f19139999
commit
53697081ce
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ func TestExample(t *testing.T) {
|
||||||
|
|
||||||
policy := new(netmap.PlacementPolicy)
|
policy := new(netmap.PlacementPolicy)
|
||||||
policy.SetContainerBackupFactor(2)
|
policy.SetContainerBackupFactor(2)
|
||||||
policy.SetReplicas([]*netmap.Replica{replica})
|
policy.SetReplicas(replica)
|
||||||
|
|
||||||
// this container has random nonce and it does not set owner id
|
// this container has random nonce and it does not set owner id
|
||||||
cnr := container.New(
|
cnr := container.New(
|
||||||
|
|
|
@ -25,7 +25,7 @@ func New(opts ...NewOption) *Container {
|
||||||
}
|
}
|
||||||
|
|
||||||
if cnrOptions.policy != nil {
|
if cnrOptions.policy != nil {
|
||||||
cnr.SetPlacementPolicy(cnrOptions.policy)
|
cnr.SetPlacementPolicy(cnrOptions.policy.ToV2())
|
||||||
}
|
}
|
||||||
|
|
||||||
attributes := make([]*container.Attribute, len(cnrOptions.attributes))
|
attributes := make([]*container.Attribute, len(cnrOptions.attributes))
|
||||||
|
|
Loading…
Reference in a new issue