完善文档

This commit is contained in:
flswld committed 2022-12-30 18:27:51 +08:00
1 parent 6fd3d6a349
commit 2bc157dd2d
22 files changed
+467 -233

No files matched your search

+10
View File
@@ -35,6 +35,16 @@ func Run(ctx context.Context, configFile string) error {
return err
}
APPID = rsp.GetAppId()
go func() {
ticker := time.NewTicker(time.Second * 15)
for {
<-ticker.C
_, _ = client.Discovery.KeepaliveServer(context.TODO(), &api.KeepaliveServerReq{
ServerType: api.PATHFINDING,
AppId: APPID,
})
}
}()
defer func() {
_, _ = client.Discovery.CancelServer(context.TODO(), &api.CancelServerReq{
ServerType: api.PATHFINDING,