Skip to content

Commit

Permalink
Replace io/util.ReadFile by os.ReadFile
Browse files Browse the repository at this point in the history
  • Loading branch information
minhduc140583 committed Jul 28, 2024
1 parent a6353d0 commit 1fda2ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sarama/config_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"crypto/x509"
"errors"
"github.com/IBM/sarama"
"io"
"log"
"os"
)

func GetConfig(brokers []string, algorithm *string, config *ClientConfig, conf sarama.Config) (*sarama.Config, error) {
Expand Down Expand Up @@ -91,7 +91,7 @@ func CreateTLSConfig(c TLSConfig) (t *tls.Config) {
if err != nil {
log.Fatalf("%v", err)
}
caCert, err := io.ReadFile(c.CaFile)
caCert, err := os.ReadFile(c.CaFile)
if err != nil {
log.Fatalf("%v", err)
}
Expand Down

0 comments on commit 1fda2ba

Please sign in to comment.