Merge pull request #3 from chrislusf/master

This commit is contained in:
bingoohuang
2021-02-20 16:45:02 +08:00
committed by GitHub
20 changed files with 127 additions and 104 deletions

View File

@@ -6,9 +6,9 @@ import (
)
type ReplicaPlacement struct {
SameRackCount int
DiffRackCount int
DiffDataCenterCount int
SameRackCount int `json:"node,omitempty"`
DiffRackCount int `json:"rack,omitempty"`
DiffDataCenterCount int `json:"dc,omitempty"`
}
func NewReplicaPlacementFromString(t string) (*ReplicaPlacement, error) {