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
58221adccb
commit
6bb9f8f54c
|
@ -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