docs: correct copy-and-paste of udp to tcp (#11080)

This commit is contained in:
Peter (Stig) Edwards 2022-05-11 16:54:36 +01:00 committed by GitHub
parent 81090be35d
commit 2cad990e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {