Updated the deprecated ioutil dependency (#4239)

This commit is contained in:
Zachary Walters
2023-02-21 21:47:33 -06:00
committed by GitHub
parent 2c4dbaedf2
commit ef2f741823
4 changed files with 8 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ import (
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/credentials/tls/certprovider/pemfile"
"google.golang.org/grpc/security/advancedtls"
"io/ioutil"
"os"
"strings"
"time"
@@ -136,7 +136,7 @@ func LoadClientTLS(config *util.ViperProxy, component string) grpc.DialOption {
}
func LoadClientTLSHTTP(clientCertFile string) *tls.Config {
clientCerts, err := ioutil.ReadFile(clientCertFile)
clientCerts, err := os.ReadFile(clientCertFile)
if err != nil {
glog.Fatal(err)
}