From 1d8f03469605b16df6deedfb148b401b95aef4d6 Mon Sep 17 00:00:00 2001 From: James Sedgwick Date: Thu, 19 Jul 2018 13:56:30 -0700 Subject: [PATCH] ticker (#37) Signed-off-by: James Sedgwick --- tcp_sink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp_sink.go b/tcp_sink.go index 4d04934..becf47a 100644 --- a/tcp_sink.go +++ b/tcp_sink.go @@ -109,7 +109,7 @@ func (s *tcpStatsdSink) FlushTimer(name string, value float64) { func (s *tcpStatsdSink) run() { settings := GetSettings() - t := time.NewTimer(flushInterval) + t := time.NewTicker(flushInterval) defer t.Stop() for { if s.conn == nil {