Merge remote branch

This commit is contained in:
yaling888 2021-10-15 14:14:51 +08:00
commit cbea46b0c8

View file

@ -11,6 +11,9 @@ type BufferedConn struct {
} }
func NewBufferedConn(c net.Conn) *BufferedConn { func NewBufferedConn(c net.Conn) *BufferedConn {
if bc, ok := c.(*BufferedConn); ok {
return bc
}
return &BufferedConn{bufio.NewReader(c), c} return &BufferedConn{bufio.NewReader(c), c}
} }