Skip to content

Commit

Permalink
directly save tls config
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
  • Loading branch information
CabinfeverB committed Jan 4, 2024
1 parent 3917a61 commit f09af97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func createClientWithKeyspace(
ctx context.Context, keyspaceID uint32, svrAddrs []string,
security SecurityOption, opts ...ClientOption,
) (Client, error) {
pdTlsCfg := &tlsutil.TLSConfig{
pdTLSCfg := &tlsutil.TLSConfig{
CAPath: security.CAPath,
CertPath: security.CertPath,
KeyPath: security.KeyPath,
Expand All @@ -368,7 +368,7 @@ func createClientWithKeyspace(
SSLCertBytes: security.SSLCertBytes,
SSLKEYBytes: security.SSLKEYBytes,
}
tlsCfg, err := pdTlsCfg.ToTLSConfig()
tlsCfg, err := pdTLSCfg.ToTLSConfig()
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -477,7 +477,7 @@ func newClientWithKeyspaceName(
ctx context.Context, keyspaceName string, svrAddrs []string,
security SecurityOption, opts ...ClientOption,
) (Client, error) {
pdTlsCfg := &tlsutil.TLSConfig{
pdTLSCfg := &tlsutil.TLSConfig{
CAPath: security.CAPath,
CertPath: security.CertPath,
KeyPath: security.KeyPath,
Expand All @@ -486,7 +486,7 @@ func newClientWithKeyspaceName(
SSLCertBytes: security.SSLCertBytes,
SSLKEYBytes: security.SSLKEYBytes,
}
tlsCfg, err := pdTlsCfg.ToTLSConfig()
tlsCfg, err := pdTLSCfg.ToTLSConfig()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f09af97

Please sign in to comment.