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.

15 lines
377 B

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