diff --git a/snow/networking/handler/health.go b/snow/networking/handler/health.go index cc3177e6b541..0dbcb844fb95 100644 --- a/snow/networking/handler/health.go +++ b/snow/networking/handler/health.go @@ -43,7 +43,8 @@ func (h *handler) HealthCheck(ctx context.Context) (interface{}, error) { func (h *handler) networkHealthCheck() (interface{}, error) { percentConnected := h.peerTracker.ConnectedPercent() details := map[string]interface{}{ - "percentConnected": percentConnected, + "percentConnected": percentConnected, + "disconnectedValidators": h.getDisconnectedValidators(), } var err error @@ -57,11 +58,6 @@ func (h *handler) networkHealthCheck() (interface{}, error) { ) } - disconnectedVdrs := h.getDisconnectedValidators() - if disconnectedVdrs.Len() > 0 { - details["disconnectedValidators"] = disconnectedVdrs - } - return details, err }