From 6bb9f8f54c8962291db9a98d9a5ff48636783610 Mon Sep 17 00:00:00 2001 From: tidwall Date: Wed, 31 Mar 2021 08:15:52 -0700 Subject: [PATCH] Remove deprecated function Go recommends not calling BuildNameToCertificate and to allow for the names to be selected automatically. --- internal/endpoint/kafka.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/endpoint/kafka.go b/internal/endpoint/kafka.go index 3c2ed4d9..5df14a67 100644 --- a/internal/endpoint/kafka.go +++ b/internal/endpoint/kafka.go @@ -143,6 +143,5 @@ func newKafkaTLSConfig(CertFile, KeyFile, CACertFile string) (*tls.Config, error caCertPool.AppendCertsFromPEM(caCert) tlsConfig.RootCAs = caCertPool - tlsConfig.BuildNameToCertificate() return &tlsConfig, err }