移除节点归属地查询功能,归属地查询放到网关实现;优化节点上线流程,网关根据节点状态提交增量更新数据
This commit is contained in:
@@ -118,8 +118,9 @@ func (s *server) Run() (err error) {
|
||||
slog.Error("服务下线失败", "err", err)
|
||||
}
|
||||
|
||||
// 关闭 redis
|
||||
// 关闭服务
|
||||
g.ExitRedis()
|
||||
g.ExitGeo()
|
||||
}()
|
||||
|
||||
// 等待其它服务关闭
|
||||
@@ -143,6 +144,7 @@ func (s *server) init() error {
|
||||
log.Init()
|
||||
env.Init()
|
||||
g.InitRedis()
|
||||
g.InitGeo()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user