mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
Remove 'NodeStates' from /status until it is reliable
This commit is contained in:
parent
1a04e94fc1
commit
46d010fe18
1 changed files with 4 additions and 6 deletions
|
|
@ -702,7 +702,6 @@ func (h *Handler) handleGetStatus(w http.ResponseWriter, r *http.Request) {
|
|||
status := getStatusResponse{
|
||||
State: h.api.State(),
|
||||
Nodes: h.api.Hosts(r.Context()),
|
||||
NodeStates: h.api.HostStates(r.Context()),
|
||||
LocalID: h.api.Node().ID,
|
||||
ClusterName: h.api.ClusterName(),
|
||||
}
|
||||
|
|
@ -760,11 +759,10 @@ type getSchemaResponse struct {
|
|||
}
|
||||
|
||||
type getStatusResponse struct {
|
||||
State string `json:"state"`
|
||||
Nodes []*pilosa.Node `json:"nodes"`
|
||||
NodeStates map[string]string `json:"nodeStates"`
|
||||
LocalID string `json:"localID"`
|
||||
ClusterName string `json:"clusterName"`
|
||||
State string `json:"state"`
|
||||
Nodes []*pilosa.Node `json:"nodes"`
|
||||
LocalID string `json:"localID"`
|
||||
ClusterName string `json:"clusterName"`
|
||||
}
|
||||
|
||||
func hash(s string) string {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue