[ 项目 ] 优化业务队列等待逻辑

This commit is contained in:
zeaslity
2023-07-06 15:49:14 +08:00
parent 129f388cfa
commit f5a3db2f56
5 changed files with 18 additions and 14 deletions

View File

@@ -27,6 +27,8 @@ func main() {
g.G.AgentConfig = register.ParseConfiguration(filename)
// 执行初始化之策工作
AgentServerInfoCache = INIT(agentServerInfoConf)
businessForeverChan := INIT(agentServerInfoConf)
// 永远等待 runtime的队列消息
<-businessForeverChan
}