perf与性能优化

This commit is contained in:
flswld
2023-04-15 20:00:37 +08:00
parent 149b773f4b
commit 094ad5add0
26 changed files with 403 additions and 308 deletions
+1 -8
View File
@@ -7,7 +7,6 @@ import (
"syscall"
"hk4e/common/config"
"hk4e/common/rpc"
"hk4e/gm/controller"
"hk4e/pkg/logger"
)
@@ -21,13 +20,7 @@ func Run(ctx context.Context, configFile string) error {
logger.CloseLogger()
}()
// natsrpc client
client, err := rpc.NewClient()
if err != nil {
return err
}
_ = controller.NewController(client.GM)
_ = controller.NewController()
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)