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 58221adccb
commit 6bb9f8f54c
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)
tlsConfig.RootCAs = caCertPool
tlsConfig.BuildNameToCertificate()
return &tlsConfig, err
}