mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
Merge pull request #1738 from wanyaoqi/bugfix/wyq/host-listen-before-register
bugfix: host listen before register
This commit is contained in:
@@ -88,8 +88,11 @@ func (host *SHostService) RunService() {
|
||||
hostmetrics.Start()
|
||||
})
|
||||
})
|
||||
host.initHandlers(app)
|
||||
<-hostinfo.Instance().IsRegistered // wait host and guest init
|
||||
|
||||
go func() {
|
||||
<-hostinfo.Instance().IsRegistered // wait host and guest init
|
||||
host.initHandlers(app)
|
||||
}()
|
||||
|
||||
// Init Metadata handler
|
||||
go metadata.StartService(
|
||||
|
||||
Reference in New Issue
Block a user