evt start code
This commit is contained in:
parent
072de33afb
commit
67512125f7
6
agent.go
6
agent.go
|
@ -30,6 +30,12 @@ func StartAgent() {
|
||||||
func (agt *Agent) startAgent() {
|
func (agt *Agent) startAgent() {
|
||||||
//1. cfg start()
|
//1. cfg start()
|
||||||
//2. evt start()
|
//2. evt start()
|
||||||
|
evtStartChn := make(chan bool, 0)
|
||||||
|
err := evt.Start(evtStartChn)
|
||||||
|
if err != nil {
|
||||||
|
processError(err)
|
||||||
|
}
|
||||||
|
<- evtStartChn
|
||||||
//3. dat start()
|
//3. dat start()
|
||||||
datStarted := make(chan bool)
|
datStarted := make(chan bool)
|
||||||
dat.Start(datStarted, agt.cm.GetGlobalConfig())
|
dat.Start(datStarted, agt.cm.GetGlobalConfig())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user