luoyangwei 1 рік тому
батько
коміт
1653d09e43
2 змінених файлів з 1 додано та 3 видалено
  1. 1 1
      go.mod
  2. 0 2
      websocket.go

+ 1 - 1
go.mod

@@ -3,6 +3,7 @@ module sikey.com/websocket
 go 1.21.4
 
 require (
+	github.com/DeanThompson/ginpprof v0.0.0-20201112072838-007b1e56b2e1
 	github.com/gin-gonic/gin v1.9.1
 	github.com/golang-jwt/jwt/v5 v5.2.0
 	github.com/google/uuid v1.4.0
@@ -17,7 +18,6 @@ require (
 )
 
 require (
-	github.com/DeanThompson/ginpprof v0.0.0-20201112072838-007b1e56b2e1 // indirect
 	github.com/bytedance/sonic v1.10.2 // indirect
 	github.com/cespare/xxhash/v2 v2.2.0 // indirect
 	github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect

+ 0 - 2
websocket.go

@@ -16,8 +16,6 @@ import (
 	"sikey.com/websocket/server"
 	"sikey.com/websocket/utils/mysqlx"
 	"sikey.com/websocket/utils/zlog"
-
-	_ "net/http/pprof"
 )
 
 var configFile = flag.String("f", "./etc/websocket.toml", "the config file")