mirror of
https://github.com/statbate/special-pancake.git
synced 2026-08-11 03:12:42 +00:00
remove echo ws
This commit is contained in:
parent
e1a12157f7
commit
fd9906d0c1
3 changed files with 0 additions and 99 deletions
|
|
@ -49,12 +49,9 @@ func listHandler(w http.ResponseWriter, _ *http.Request) {
|
|||
}
|
||||
|
||||
func debugHandler(w http.ResponseWriter, _ *http.Request) {
|
||||
ws.Count <- 0
|
||||
l := <-ws.Count
|
||||
runtime.ReadMemStats(&memInfo)
|
||||
j, err := json.Marshal(struct {
|
||||
Goroutines int
|
||||
WebSocket int
|
||||
Uptime int64
|
||||
Alloc uint64
|
||||
HeapSys uint64
|
||||
|
|
@ -63,7 +60,6 @@ func debugHandler(w http.ResponseWriter, _ *http.Request) {
|
|||
Alloc: memInfo.Alloc,
|
||||
HeapSys: memInfo.HeapSys,
|
||||
Uptime: uptime,
|
||||
WebSocket: l,
|
||||
})
|
||||
if err == nil {
|
||||
fmt.Fprint(w, string(j))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue