tendermint/p2p/conn/conn_go110.go

16 lines
378 B
Go
Raw Normal View History

// +build go1.10
2018-01-20 21:33:53 -08:00
package conn
// 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"
2018-01-20 18:12:04 -08:00
func NetPipe() (net.Conn, net.Conn) {
return net.Pipe()
}