remove deprecated use of ioutil (#5205)

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2022-12-08 14:44:53 +01:00
committed by GitHub
parent 46cb910637
commit 53d15d329e
24 changed files with 57 additions and 67 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"crypto/tls"
"crypto/x509"
"errors"
"io/ioutil"
"os"
"sync"
mgrpcc "github.com/go-micro/plugins/v4/client/grpc"
@@ -68,7 +68,7 @@ func Configure(opts ...ClientOption) error {
// Note: If caCert is empty we use the system's default set of trusted CAs
if options.caCert != "" {
certs := x509.NewCertPool()
pemData, err := ioutil.ReadFile(options.caCert)
pemData, err := os.ReadFile(options.caCert)
if err != nil {
outerr = err
return