Codebase list golang-github-go-kit-kit / 134c9a7
remove some unused code Olivier Bregeras 8 years ago
1 changed file(s) with 0 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
4545 err error
4646 caCertCt []byte
4747 tlsCert tls.Certificate
48 //options *ClientOptions
4948 )
5049 if options == nil {
5150 options = &ClientOptions{
5756 HeaderTimeoutPerRequest: 100 * time.Second,
5857 }
5958 }
60
61 //log.Println("")
6259
6360 if options.Cert != "" && options.Key != "" {
6461
7774 tlsConfig := &tls.Config{
7875 Certificates: []tls.Certificate{tlsCert},
7976 RootCAs: caCertPool,
80 // InsecureSkipVerify: true,
8177 }
8278
8379 transport := &http.Transport{
10298 }
10399 c = etcd.NewKeysAPI(ce)
104100 } else {
105 // c = etcd.NewClient(machines)
106101 cfg := etcd.Config{
107102 Endpoints: machines,
108103 Transport: etcd.DefaultTransport,