[#189] sdk/netmap: Refactor Replica type

Replace alias to v2 type Replica with v2-compatible implementation.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-05 13:28:29 +03:00 committed by Alex Vanin
parent eb96fffa5c
commit 6a29d9c360
3 changed files with 83 additions and 1 deletions

View file

@ -6,7 +6,6 @@ import (
// fixme: make types instead of aliases to v2 structures
type PlacementPolicy = netmap.PlacementPolicy
type Replica = netmap.Replica
func PlacementPolicyToJSON(p *PlacementPolicy) ([]byte, error) {
return netmap.PlacementPolicyToJSON(p)