From 46d010fe188b8ed42643c6af464b2bdada2e247d Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Wed, 30 Sep 2020 07:23:39 -0500 Subject: [PATCH] Remove 'NodeStates' from /status until it is reliable --- http/handler.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/http/handler.go b/http/handler.go index 63e51ef6d..c91adef68 100644 --- a/http/handler.go +++ b/http/handler.go @@ -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 {