From a6353d09026976787500823b7cf91170180ad7fd Mon Sep 17 00:00:00 2001 From: Duc Nguyen Date: Sun, 28 Jul 2024 14:38:40 +0700 Subject: [PATCH] Refactor sarama --- sarama/config_utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sarama/config_utils.go b/sarama/config_utils.go index e8ca05e..1f480a2 100644 --- a/sarama/config_utils.go +++ b/sarama/config_utils.go @@ -5,7 +5,7 @@ import ( "crypto/x509" "errors" "github.com/IBM/sarama" - "io/ioutil" + "io" "log" ) @@ -91,7 +91,7 @@ func CreateTLSConfig(c TLSConfig) (t *tls.Config) { if err != nil { log.Fatalf("%v", err) } - caCert, err := ioutil.ReadFile(c.CaFile) + caCert, err := io.ReadFile(c.CaFile) if err != nil { log.Fatalf("%v", err) }