Merge pull request #2282 from flant/fix-ioutils-mysql
chore: fix ioutil lint error after merging MySQL ent storage
This commit is contained in:
commit
ff6e7c7688
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue