format code

This commit is contained in:
Jason
2019-08-11 18:00:23 +08:00
parent 31c696169e
commit 92a111440e

View File

@@ -64,7 +64,7 @@ type tcpConn struct {
localAddr *net.TCPAddr
connKeyArg unsafe.Pointer
connKey uint32
canWrite *sync.Cond // Condition variable to implement TCP backpressure.
canWrite *sync.Cond // Condition variable to implement TCP back pressure.
state tcpConnState
sndPipeReader *io.PipeReader
sndPipeWriter *io.PipeWriter
@@ -133,9 +133,11 @@ func (conn *tcpConn) LocalAddr() net.Addr {
func (conn *tcpConn) SetDeadline(t time.Time) error {
return nil
}
func (conn *tcpConn) SetReadDeadline(t time.Time) error {
return nil
}
func (conn *tcpConn) SetWriteDeadline(t time.Time) error {
return nil
}