Skip to content

Commit

Permalink
ticker (#37)
Browse files Browse the repository at this point in the history
Signed-off-by: James Sedgwick <[email protected]>
  • Loading branch information
James Sedgwick authored and btc committed Jul 19, 2018
1 parent bb587bd commit 1d8f034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcp_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1d8f034

Please sign in to comment.