collector

This commit is contained in:
insanity@loafle.com 2017-05-11 20:06:04 +09:00
parent 39dabb08e7
commit ea18aeab18

View File

@ -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() {