mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-18 16:42:26 +08:00
完善了服务器上下线,http登录负载均衡下发gate地址
This commit is contained in:
@@ -36,6 +36,12 @@ func Run(ctx context.Context, configFile string) error {
|
||||
return err
|
||||
}
|
||||
APPID = rsp.GetAppId()
|
||||
defer func() {
|
||||
_, _ = client.Discovery.CancelServer(context.TODO(), &api.CancelServerReq{
|
||||
ServerType: api.FIGHT,
|
||||
AppId: APPID,
|
||||
})
|
||||
}()
|
||||
|
||||
logger.InitLogger("fight_" + APPID)
|
||||
logger.Warn("fight start, appid: %v", APPID)
|
||||
|
||||
Reference in New Issue
Block a user