Skip to content

Commit

Permalink
flush more often
Browse files Browse the repository at this point in the history
  • Loading branch information
droyo committed Jul 26, 2016
1 parent 824d9a1 commit 2f5ab77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func toGraphite(hostport string, out *template.Template, wg sync.WaitGroup) (cha
bw := bufio.NewWriter(conn)
for m := range c {
out.Execute(bw, m)
bw.Flush()
}
bw.Flush()
conn.Close()
wg.Done()
}()
Expand Down

0 comments on commit 2f5ab77

Please sign in to comment.