新增单进程模式

This commit is contained in:
flswld committed 2024-07-18 00:56:30 +08:00
1 parent 669a524153
commit 6136e57919
73 files changed
+1900 -153

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ gate_tcp_mq_addr = "127.0.0.1" # 访问网关tcp直连消息队列的地址 填
gate_tcp_mq_port = 33333 # tcp消息队列端口号
login_sdk_url = "http://127.0.0.1:8080/gate/token/verify" # 网关登录验证token的sdk服务器地址 目前填dispatch的内网地址
login_sdk_account_key = "" # sdk服务器账号验证的签名密钥
byte_check_mode = -1 # 网络包数据校验模式
[logger]
level = "debug"
+3 -1
View File
@@ -7,6 +7,7 @@ import (
_ "net/http/pprof"
"os"
cfg "hk4e/common/config"
"hk4e/gate/app"
"hk4e/pkg/statsviz_serve"
)
@@ -23,7 +24,8 @@ func main() {
_ = statsviz_serve.Serve("0.0.0.0:3456")
}()
app.APPVERSION = VERSION
err := app.Run(context.TODO(), *config)
cfg.InitConfig(*config)
err := app.Run(context.TODO())
if err != nil {
fmt.Println(err)
os.Exit(1)