github.com/number571/tendermint@v0.34.11-gost/internal/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/number571/tendermint/issues/851 10 11 import "net" 12 13 func NetPipe() (net.Conn, net.Conn) { 14 return net.Pipe() 15 }