Start senders immediately

This commit is contained in:
Julian Kornberger 2016-03-12 01:04:22 +01:00
parent 9923e0a4f2
commit 894eabedb8

View File

@ -50,7 +50,10 @@ func NewCollector(CollectType string, interval time.Duration, msgStruct interfac
go collector.receiver() go collector.receiver()
go collector.parser() go collector.parser()
go collector.sender()
// Run senders
go collector.sendOnce() // immediately
go collector.sender() // periodically
return collector return collector
} }