Start senders immediately
This commit is contained in:
parent
9923e0a4f2
commit
894eabedb8
|
@ -50,7 +50,10 @@ func NewCollector(CollectType string, interval time.Duration, msgStruct interfac
|
|||
|
||||
go collector.receiver()
|
||||
go collector.parser()
|
||||
go collector.sender()
|
||||
|
||||
// Run senders
|
||||
go collector.sendOnce() // immediately
|
||||
go collector.sender() // periodically
|
||||
|
||||
return collector
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue