github.com/vipernet-xyz/tm@v0.34.24/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/vipernet-xyz/tm/issues/851
    11  
    12  import "net"
    13  
    14  func NetPipe() (net.Conn, net.Conn) {
    15  	return net.Pipe()
    16  }