This commit is contained in:
laodaming 2023-08-23 15:21:50 +08:00
parent 45a179fc16
commit dc7dc7e1b9

View File

@ -6,7 +6,6 @@ import (
"encoding/json" "encoding/json"
"fusenapi/constants" "fusenapi/constants"
"fusenapi/utils/auth" "fusenapi/utils/auth"
"fusenapi/utils/id_generator"
"fusenapi/utils/websocket_data" "fusenapi/utils/websocket_data"
"net/http" "net/http"
"sync" "sync"
@ -37,8 +36,6 @@ func NewDataTransferLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Data
} }
var ( var (
//全局websocketid生成器
websocketIdGenerator = id_generator.NewWebsocketId(1)
//临时缓存对象池 //临时缓存对象池
buffPool = sync.Pool{ buffPool = sync.Pool{
New: func() interface{} { New: func() interface{} {