You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// +build go1.10
|
|
|
|
package p2p
|
|
|
|
// Go1.10 has a proper net.Conn implementation that
|
|
// has the SetDeadline method implemented as per
|
|
// https://github.com/golang/go/commit/e2dd8ca946be884bb877e074a21727f1a685a706
|
|
// lest we run into problems like
|
|
// https://github.com/tendermint/tendermint/issues/851
|
|
|
|
import "net"
|
|
|
|
func netPipe() (net.Conn, net.Conn) {
|
|
return net.Pipe()
|
|
}
|