Skip to content

Commit

Permalink
bufferedclient: do not create socket on flush
Browse files Browse the repository at this point in the history
  • Loading branch information
András Czigány committed Mar 3, 2017
1 parent 53ca121 commit 01e1623
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bufferedclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,6 @@ func (sb *StatsdBuffer) flush() (err error) {
if n == 0 {
return nil
}
err = sb.statsd.CreateSocket()
if nil != err {
sb.Logger.Println("Error establishing UDP connection for sending statsd events:", err)
return err
}
if err := sb.statsd.SendEvents(sb.events); err != nil {
sb.Logger.Println(err)
return err
Expand Down

0 comments on commit 01e1623

Please sign in to comment.