()
| 880 | } |
| 881 | |
| 882 | func (cn *Conn) RemoteAddr() net.Addr { |
| 883 | // Lock-free netConn access for better performance |
| 884 | if netConn := cn.getNetConn(); netConn != nil { |
| 885 | return netConn.RemoteAddr() |
| 886 | } |
| 887 | return nil |
| 888 | } |
| 889 | |
| 890 | func (cn *Conn) WithReader( |
| 891 | ctx context.Context, timeout time.Duration, fn func(rd *proto.Reader) error, |
nothing calls this directly
no test coverage detected