格式化代码

This commit is contained in:
huangxiaolei committed 2022-12-19 13:40:04 +08:00
1 parent f773ba8df7
commit 58b2df2bc6
92 files changed
+682 -626

No files matched your search

+3 -2
View File
@@ -3,6 +3,7 @@ package kcp
import (
"bytes"
"encoding/binary"
"github.com/pkg/errors"
)
@@ -17,8 +18,8 @@ func (s *UDPSession) defaultReadLoop() {
if src == "" { // set source address
src = addr.String()
} else if addr.String() != src {
//atomic.AddUint64(&DefaultSnmp.InErrs, 1)
//continue
// atomic.AddUint64(&DefaultSnmp.InErrs, 1)
// continue
s.remote = addr
src = addr.String()
}