This commit is contained in:
suyl
2021-06-28 18:27:03 +08:00
parent 235b2264ef
commit 7c2a8db309
2 changed files with 1 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ type TcpClient struct {
s *sync.RWMutex
}
func Init() {
func init() {
listenTcp()
go handleTcpMessages()
}

View File

@@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
"git.rosy.net.cn/jx-callback/business/jxstore/event"
"net/http"
_ "net/http/pprof"
"os"
@@ -144,9 +143,6 @@ func main() {
http.ListenAndServe("0.0.0.0:6060", nil)
}
}()
if globals.IsProductEnv() {
event.Init()
}
beego.Run()
}
}