github.com/badrootd/celestia-core@v0.0.0-20240305091328-aa4207a4b25d/p2p/conn/conn_go110.go (about)

     1  //go:build go1.10
     2  // +build go1.10
     3  
     4  package conn
     5  
     6  // Go1.10 has a proper net.Conn implementation that
     7  // has the SetDeadline method implemented as per
     8  //  https://github.com/golang/go/commit/e2dd8ca946be884bb877e074a21727f1a685a706
     9  // lest we run into problems like
    10  //  https://github.com/cometbft/cometbft/issues/851
    11  
    12  import "net"
    13  
    14  func NetPipe() (net.Conn, net.Conn) {
    15  	return net.Pipe()
    16  }