collector
This commit is contained in:
parent
39dabb08e7
commit
ea18aeab18
|
@ -15,7 +15,7 @@ func handleConfigLoaded() {
|
||||||
|
|
||||||
coll := GetInstance()
|
coll := GetInstance()
|
||||||
coll.start(confMng)
|
coll.start(confMng)
|
||||||
observer.Remove(messages.CRM_READY, ch)
|
//observer.Remove(messages.CRM_READY, ch)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Collector) notifyCollectorReady() {
|
func (c *Collector) notifyCollectorReady() {
|
||||||
|
@ -31,7 +31,7 @@ func (c *Collector) handleAgentWillStop() {
|
||||||
observer.Add(messages.AGT_WILL_STOP, ch)
|
observer.Add(messages.AGT_WILL_STOP, ch)
|
||||||
data := <-ch
|
data := <-ch
|
||||||
c.Stop(data)
|
c.Stop(data)
|
||||||
observer.Remove(messages.AGT_WILL_STOP, ch)
|
//observer.Remove(messages.AGT_WILL_STOP, ch)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Collector) handleSensorStart() {
|
func (c *Collector) handleSensorStart() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user