Skip to content

Commit

Permalink
Remove CPU core reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-blox committed Dec 20, 2023
1 parent 58379c9 commit 7d73cec
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/handlers/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"net/http"
"runtime"

"github.com/libp2p/go-libp2p/core/network"
"github.com/libp2p/go-libp2p/core/peer"
Expand Down Expand Up @@ -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"`
}

Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 7d73cec

Please sign in to comment.