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
(cherry picked from commit 2cad990)
  • Loading branch information
thatsafunnyname authored and Sebastian Spaink committed Jun 7, 2022
1 parent 83359b2 commit 8a2b30d
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 @@ -477,7 +477,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 @@ -518,7 +518,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 8a2b30d

Please sign in to comment.