refactor: remove ioutil module usage

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2023-03-11 12:27:30 +01:00
parent 291c4f6361
commit 82d04d63b6
5 changed files with 11 additions and 14 deletions

View File

@ -6,8 +6,8 @@ import (
"crypto/x509"
"embed"
"fmt"
"io/ioutil"
"net"
"os"
"strings"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
@ -533,7 +533,7 @@ func (o *options) parseTLSConfig() error {
}
return nil
}
caCert, err := ioutil.ReadFile(o.caCert)
caCert, err := os.ReadFile(o.caCert)
if err != nil {
return err
}