github.com/franono/tendermint@v0.32.2-0.20200527150959-749313264ce9/p2p/conn/conn_go110.go (about)

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