Remove deprecated function

Go recommends not calling BuildNameToCertificate and to allow
for the names to be selected automatically.
This commit is contained in:
tidwall 2021-03-31 08:15:52 -07:00
parent 6b08f7fa9e
commit 5e440b621b
1 changed files with 0 additions and 1 deletions

View File

@ -143,6 +143,5 @@ func newKafkaTLSConfig(CertFile, KeyFile, CACertFile string) (*tls.Config, error
caCertPool.AppendCertsFromPEM(caCert) caCertPool.AppendCertsFromPEM(caCert)
tlsConfig.RootCAs = caCertPool tlsConfig.RootCAs = caCertPool
tlsConfig.BuildNameToCertificate()
return &tlsConfig, err return &tlsConfig, err
} }