mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-04 08:30:45 +08:00
chore: remove log
This commit is contained in:
@@ -162,15 +162,13 @@ func listen(conn *net.UDPConn) <-chan []byte {
|
||||
for {
|
||||
buf := make([]byte, 10240)
|
||||
|
||||
n, addr, err := conn.ReadFromUDP(buf)
|
||||
n, _, err := conn.ReadFromUDP(buf)
|
||||
if err != nil {
|
||||
close(messages)
|
||||
|
||||
return
|
||||
}
|
||||
log.Debugf("Received message from %s: %d", addr, n)
|
||||
buf = buf[:n]
|
||||
log.Debugf("recevied message %s", string(buf))
|
||||
|
||||
messages <- buf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user