agent
This commit is contained in:
parent
59593c07e3
commit
79b3f6728d
15
agent.go
15
agent.go
|
@ -42,20 +42,19 @@ func (agt *Agent) startAgent() {
|
||||||
globalConf := <-cfgStarted
|
globalConf := <-cfgStarted
|
||||||
|
|
||||||
//2. evt start()
|
//2. evt start()
|
||||||
evtStartChn := make(chan bool, 0)
|
evtStarted := make(chan bool, 0)
|
||||||
err := evt.Start(evtStartChn)
|
if err := evt.Start(evtStarted); err != nil {
|
||||||
//if err != nil {
|
log.Println(err)
|
||||||
// processError(err)
|
return
|
||||||
//}
|
}
|
||||||
<- evtStartChn
|
<-evtStarted
|
||||||
//3. dat start()
|
//3. dat start()
|
||||||
datStarted := make(chan bool)
|
datStarted := make(chan bool)
|
||||||
dat.Start(datStarted, globalConf)
|
dat.Start(datStarted, globalConf)
|
||||||
<-datStarted
|
<-datStarted
|
||||||
//4. pol start()
|
//4. pol start()
|
||||||
polStarted := make(chan bool)
|
polStarted := make(chan bool)
|
||||||
err := pol.Start(polStarted, globalConf)
|
if err := pol.Start(polStarted, globalConf); err != nil {
|
||||||
if err != nil {
|
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user