添加了节点服务器,各个服务器之间支持多对多

This commit is contained in:
flswld
2022-12-24 04:14:33 +08:00
parent 16dd9c1e87
commit 7e86669628
92 changed files with 1429 additions and 287 deletions

View File

@@ -4,9 +4,11 @@ import (
"context"
"flag"
"fmt"
_ "net/http/pprof"
"os"
"hk4e/gm/app"
"hk4e/pkg/statsviz_serve"
)
var (
@@ -15,6 +17,12 @@ var (
func main() {
flag.Parse()
go func() {
err := statsviz_serve.Serve("0.0.0.0:7890")
if err != nil {
panic(err)
}
}()
err := app.Run(context.TODO(), *config)
if err != nil {
fmt.Println(err)