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