This commit is contained in:
crusader 2018-03-15 23:40:27 +09:00
parent f073163bf7
commit d2cd8ed86a

View File

@ -12,6 +12,7 @@ import (
oopccd "git.loafle.net/overflow/overflow_probes/client/central/data"
oopccp "git.loafle.net/overflow/overflow_probes/client/central/probe"
oopca "git.loafle.net/overflow/overflow_probes/commons/annotation"
oops "git.loafle.net/overflow/overflow_probes/service"
)
func New() ProbeManager {
@ -45,14 +46,14 @@ func (pm *probeManagers) Start() error {
}
cdr.RegisterResource("CentralClients", centralClients)
oops.InitService()
services := cdr.GetInstancesByAnnotationName(oopca.ServiceTag)
for _, s := range services {
probeRPCRegistry.RegisterService(s, "")
}
// logging.Logger().Debug(fmt.Sprintf("%v", centralService.CentralClients))
if err := centralProbeClient.Connect(); nil != err {
return err
}