From 99433207015562af7d1dc313d3361577e85cbebb Mon Sep 17 00:00:00 2001 From: Mathilde Gilles Date: Tue, 29 Sep 2020 19:52:05 +0200 Subject: [PATCH] CLEANUP: Remove unused CAPool from watcher config --- consul/config.go | 2 -- consul/watcher.go | 1 - 2 files changed, 3 deletions(-) diff --git a/consul/config.go b/consul/config.go index 17e87a5..f706060 100644 --- a/consul/config.go +++ b/consul/config.go @@ -1,7 +1,6 @@ package consul import ( - "crypto/x509" "fmt" "reflect" "time" @@ -10,7 +9,6 @@ import ( type Config struct { ServiceName string ServiceID string - CAsPool *x509.CertPool Downstream Downstream Upstreams []Upstream } diff --git a/consul/watcher.go b/consul/watcher.go index 20f99d4..c1847da 100644 --- a/consul/watcher.go +++ b/consul/watcher.go @@ -464,7 +464,6 @@ func (w *Watcher) genCfg() Config { config := Config{ ServiceName: w.serviceName, ServiceID: w.service, - CAsPool: w.certCAPool, Downstream: Downstream{ LocalBindAddress: w.downstream.LocalBindAddress, LocalBindPort: w.downstream.LocalBindPort,