From 2478ee48b822f37d0ce97bf6b15b2b6666710780 Mon Sep 17 00:00:00 2001 From: "Peter (Stig) Edwards" Date: Wed, 11 May 2022 16:21:29 +0100 Subject: [PATCH] docs: correct copy-and-paste of udp to tcp --- plugins/inputs/statsd/statsd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/statsd/statsd.go b/plugins/inputs/statsd/statsd.go index 1310d54750400..a8f36ae3dae51 100644 --- a/plugins/inputs/statsd/statsd.go +++ b/plugins/inputs/statsd/statsd.go @@ -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 { @@ -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 {