[#189] sdk: Fix type conflicts after netmap package refactoring

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-05 14:15:54 +03:00 committed by Alex Vanin
parent 9f19139999
commit 53697081ce
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ func TestExample(t *testing.T) {
policy := new(netmap.PlacementPolicy)
policy.SetContainerBackupFactor(2)
policy.SetReplicas([]*netmap.Replica{replica})
policy.SetReplicas(replica)
// this container has random nonce and it does not set owner id
cnr := container.New(

View file

@ -25,7 +25,7 @@ func New(opts ...NewOption) *Container {
}
if cnrOptions.policy != nil {
cnr.SetPlacementPolicy(cnrOptions.policy)
cnr.SetPlacementPolicy(cnrOptions.policy.ToV2())
}
attributes := make([]*container.Attribute, len(cnrOptions.attributes))