remove some unused code
Olivier Bregeras
8 years ago
45 | 45 | err error |
46 | 46 | caCertCt []byte |
47 | 47 | tlsCert tls.Certificate |
48 | //options *ClientOptions | |
49 | 48 | ) |
50 | 49 | if options == nil { |
51 | 50 | options = &ClientOptions{ |
57 | 56 | HeaderTimeoutPerRequest: 100 * time.Second, |
58 | 57 | } |
59 | 58 | } |
60 | ||
61 | //log.Println("") | |
62 | 59 | |
63 | 60 | if options.Cert != "" && options.Key != "" { |
64 | 61 | |
77 | 74 | tlsConfig := &tls.Config{ |
78 | 75 | Certificates: []tls.Certificate{tlsCert}, |
79 | 76 | RootCAs: caCertPool, |
80 | // InsecureSkipVerify: true, | |
81 | 77 | } |
82 | 78 | |
83 | 79 | transport := &http.Transport{ |
102 | 98 | } |
103 | 99 | c = etcd.NewKeysAPI(ce) |
104 | 100 | } else { |
105 | // c = etcd.NewClient(machines) | |
106 | 101 | cfg := etcd.Config{ |
107 | 102 | Endpoints: machines, |
108 | 103 | Transport: etcd.DefaultTransport, |