Go: refactor (#17072)

Refactor stats

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-07-19 09:26:44 +08:00
committed by GitHub
parent b8d06d02e6
commit 20f866e703
4 changed files with 21 additions and 99 deletions

View File

@@ -368,8 +368,8 @@ func main() {
common.Warn("Failed to initialize server variables from Redis, using defaults", zap.String("error", err.Error()))
}
ctx := context.Background()
if err = server.StartServer(ctx, serverName); err != nil {
ctx, cancel := context.WithCancel(context.Background())
if err = server.StartServer(ctx, cancel, serverName); err != nil {
common.Error("Failed to start EE server", err)
os.Exit(1)
}