新增单进程模式

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

+3 -1
View File
@@ -7,6 +7,7 @@ import (
_ "net/http/pprof"
"os"
cfg "hk4e/common/config"
"hk4e/dispatch/app"
"hk4e/pkg/statsviz_serve"
)
@@ -23,7 +24,8 @@ func main() {
_ = statsviz_serve.Serve("0.0.0.0:2345")
}()
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)