forked from TrueCloudLab/frostfs-api-go
[#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:
parent
eb96fffa5c
commit
6a29d9c360
3 changed files with 83 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue