diff --git a/cmd/thanos/receive.go b/cmd/thanos/receive.go index 25b11ada64..59db2ed840 100644 --- a/cmd/thanos/receive.go +++ b/cmd/thanos/receive.go @@ -190,10 +190,6 @@ func runReceive( if err != nil { return err } - rwTLSClientConfig, err := tls.NewClientConfig(logger, rwClientCert, rwClientKey, rwClientServerCA, rwClientServerName) - if err != nil { - return err - } dialOpts, err := extgrpc.StoreClientGRPCOpts(logger, reg, tracer, rwServerCert != "", rwClientCert, rwClientKey, rwClientServerCA, rwClientServerName) if err != nil { return err @@ -208,7 +204,6 @@ func runReceive( ReplicationFactor: replicationFactor, Tracer: tracer, TLSConfig: rwTLSConfig, - TLSClientConfig: rwTLSClientConfig, DialOpts: dialOpts, }) diff --git a/pkg/receive/handler.go b/pkg/receive/handler.go index a1545232d3..733086e17d 100644 --- a/pkg/receive/handler.go +++ b/pkg/receive/handler.go @@ -60,7 +60,6 @@ type Options struct { ReplicationFactor uint64 Tracer opentracing.Tracer TLSConfig *tls.Config - TLSClientConfig *tls.Config DialOpts []grpc.DialOption }