This commit is contained in:
crusader 2017-12-09 00:59:00 +09:00
parent 14c4949480
commit 256ae2bac4
3 changed files with 4 additions and 2 deletions

View File

@ -62,7 +62,7 @@ func main() {
var instance interface{}
go func() {
if ooccp.ProbeStateTypeNotAuthorized == config.Config.Probe.State() {
if ooccp.ProbeStateTypeNotAuthorized != config.Config.Probe.State() {
var err error
instance = auth.New()

View File

@ -60,6 +60,8 @@ func (pm *probeManagers) Start() error {
probeRPCRegistry.RegisterService(probeService, "")
probeRPCRegistry.RegisterService(sensorService, "")
logging.Logger().Debug(fmt.Sprintf("%v", centralService.CentralClients))
if err := centralProbeClient.Connect(); nil != err {
return err
}

View File

@ -13,7 +13,7 @@ func init() {
}
type CentralService struct {
CentralClients map[string]oogwc.Client
CentralClients map[string]oogwc.Client `annotation:"@Resource()"`
}
func (cs *CentralService) PutClient(entryPath string, c oogwc.Client) {