Skip to content

Commit

Permalink
cmd/thanos/receive: Remove unused TLSClientConfig from Options (#2299)
Browse files Browse the repository at this point in the history
Signed-off-by: mrIncompetent <[email protected]>
  • Loading branch information
mrIncompetent authored Mar 23, 2020
1 parent 29251fe commit d89a497
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions cmd/thanos/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -208,7 +204,6 @@ func runReceive(
ReplicationFactor: replicationFactor,
Tracer: tracer,
TLSConfig: rwTLSConfig,
TLSClientConfig: rwTLSClientConfig,
DialOpts: dialOpts,
})

Expand Down
1 change: 0 additions & 1 deletion pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ type Options struct {
ReplicationFactor uint64
Tracer opentracing.Tracer
TLSConfig *tls.Config
TLSClientConfig *tls.Config
DialOpts []grpc.DialOption
}

Expand Down

0 comments on commit d89a497

Please sign in to comment.