From 894eabedb81e03b38b93e9f3f4fe67b7546a6176 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Sat, 12 Mar 2016 01:04:22 +0100 Subject: [PATCH] Start senders immediately --- respond/collector.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/respond/collector.go b/respond/collector.go index 628b039..1a8f76f 100644 --- a/respond/collector.go +++ b/respond/collector.go @@ -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 }