新增单进程模式

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/node/app"
"hk4e/pkg/statsviz_serve"
)
@@ -20,7 +21,8 @@ func main() {
go func() {
_ = statsviz_serve.Serve("0.0.0.0:1234")
}()
err := app.Run(context.TODO(), *config)
cfg.InitConfig(*config)
err := app.Run(context.TODO())
if err != nil {
fmt.Println(err)
os.Exit(1)