diff --git a/server/websocket/internal/logic/datatransferlogic.go b/server/websocket/internal/logic/datatransferlogic.go index e0ac8a3f..a606852a 100644 --- a/server/websocket/internal/logic/datatransferlogic.go +++ b/server/websocket/internal/logic/datatransferlogic.go @@ -9,7 +9,6 @@ import ( "fusenapi/utils/auth" "github.com/google/uuid" "github.com/gorilla/websocket" - "github.com/zeromicro/go-zero/rest/httpx" "net/http" "sync" "time" @@ -49,10 +48,6 @@ var ( CheckOrigin: func(r *http.Request) bool { return true }, - Error: func(w http.ResponseWriter, r *http.Request, status int, reason error) { - httpx.ErrorCtx(r.Context(), w, reason) - return - }, WriteBufferPool: &buffPool, } //连接map池