mirror of https://github.com/tidwall/tile38.git
Remove deprecated function
Go recommends not calling BuildNameToCertificate and to allow for the names to be selected automatically.
This commit is contained in:
parent
6b08f7fa9e
commit
5e440b621b
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue