From d4e82e3315069f417a635ccc91fdc6bab0d8f7dc Mon Sep 17 00:00:00 2001 From: "m.nabokikh" Date: Tue, 21 Sep 2021 08:35:25 +0400 Subject: [PATCH] chore: fix ioutil lint error after merging MySQL ent storage Signed-off-by: m.nabokikh --- storage/ent/mysql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/ent/mysql.go b/storage/ent/mysql.go index 6c34efb1..f7c4909e 100644 --- a/storage/ent/mysql.go +++ b/storage/ent/mysql.go @@ -7,8 +7,8 @@ import ( "crypto/x509" "database/sql" "fmt" - "io/ioutil" "net" + "os" "strconv" "time" @@ -135,7 +135,7 @@ func (m *MySQL) makeTLSConfig() error { if m.SSL.CAFile != "" { rootCertPool := x509.NewCertPool() - pem, err := ioutil.ReadFile(m.SSL.CAFile) + pem, err := os.ReadFile(m.SSL.CAFile) if err != nil { return err }