Skip to content

Commit

Permalink
docs: correct copy-and-paste of udp to tcp (influxdata#11080)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatsafunnyname authored May 11, 2022
1 parent 81090be commit 2cad990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/statsd/statsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func (s *Statsd) Start(ac telegraf.Accumulator) error {
return nil
}

// tcpListen() starts listening for udp packets on the configured port.
// tcpListen() starts listening for TCP packets on the configured port.
func (s *Statsd) tcpListen(listener *net.TCPListener) error {
for {
select {
Expand Down Expand Up @@ -436,7 +436,7 @@ func (s *Statsd) tcpListen(listener *net.TCPListener) error {
}
}

// udpListen starts listening for udp packets on the configured port.
// udpListen starts listening for UDP packets on the configured port.
func (s *Statsd) udpListen(conn *net.UDPConn) error {
if s.ReadBufferSize > 0 {
if err := s.UDPlistener.SetReadBuffer(s.ReadBufferSize); err != nil {
Expand Down

0 comments on commit 2cad990

Please sign in to comment.