remove echo ws

This commit is contained in:
poiuty 2023-05-10 21:09:17 +03:00
parent e1a12157f7
commit fd9906d0c1
3 changed files with 0 additions and 99 deletions

View file

@ -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))