diff --git a/third_party/forked/coreos/go-etcd/etcd/client.go b/third_party/forked/coreos/go-etcd/etcd/client.go deleted file mode 100644 index 7826be80663..00000000000 --- a/third_party/forked/coreos/go-etcd/etcd/client.go +++ /dev/null @@ -1,32 +0,0 @@ -package etcd - -import ( - "errors" - "net" - "time" -) - -// dial attempts to open a TCP connection to the provided address, explicitly -// enabling keep-alives with a one-second interval. -func Dial(network, addr string) (net.Conn, error) { - conn, err := net.DialTimeout(network, addr, time.Second) - if err != nil { - return nil, err - } - - tcpConn, ok := conn.(*net.TCPConn) - if !ok { - return nil, errors.New("Failed type-assertion of net.Conn as *net.TCPConn") - } - - // Keep TCP alive to check whether or not the remote machine is down - if err = tcpConn.SetKeepAlive(true); err != nil { - return nil, err - } - - if err = tcpConn.SetKeepAlivePeriod(time.Second); err != nil { - return nil, err - } - - return tcpConn, nil -}