From 7d73ceca7d154e45aefe997f87584a1bc08eac62 Mon Sep 17 00:00:00 2001 From: moshe-blox Date: Wed, 20 Dec 2023 14:10:55 +0200 Subject: [PATCH] Remove CPU core reporting --- api/handlers/node.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/handlers/node.go b/api/handlers/node.go index ee30783196..a43f1124e7 100644 --- a/api/handlers/node.go +++ b/api/handlers/node.go @@ -6,7 +6,6 @@ import ( "errors" "fmt" "net/http" - "runtime" "github.com/libp2p/go-libp2p/core/network" "github.com/libp2p/go-libp2p/core/peer" @@ -76,7 +75,6 @@ type healthCheckJSON struct { InboundConns int `json:"inbound_conns"` OutboundConns int `json:"outbound_conns"` ListenAddresses []string `json:"p2p_listen_addresses"` - CPUCores int `json:"cpu_cores"` } `json:"advanced"` } @@ -173,9 +171,6 @@ func (h *Node) Health(w http.ResponseWriter, r *http.Request) error { resp.ExecutionNode = healthStatus{h.NodeProber.CheckExecutionNodeHealth(ctx)} resp.EventSyncer = healthStatus{(h.NodeProber.CheckEventSyncerHealth(ctx))} - // Report number of CPU cores. - resp.Advanced.CPUCores = runtime.NumCPU() - return api.Render(w, r, resp) }