netmap: Regenerate protobuf for Replica #70

Merged
fyrchik merged 1 commit from aarifullin/frostfs-api-go:fix/grpc_replica_ec_tags into master 2024-03-28 08:14:22 +00:00
2 changed files with 12 additions and 0 deletions

BIN
netmap/grpc/types.pb.go generated

Binary file not shown.

View file

@ -81,6 +81,17 @@ func GenerateReplica(empty bool) *netmap.Replica {
return m
}
func GenerateEC(empty bool) *netmap.Replica {
m := new(netmap.Replica)
if !empty {
m.SetECDataCount(4)
m.SetECParityCount(2)
}
return m
}
func GenerateReplicas(empty bool) []netmap.Replica {
var res []netmap.Replica
@ -88,6 +99,7 @@ func GenerateReplicas(empty bool) []netmap.Replica {
res = append(res,
*GenerateReplica(false),
*GenerateReplica(false),
*GenerateEC(false),
)
}