multi: repleace ioutil.ReadAll

This commit is contained in:
erik
2023-06-13 20:17:03 +07:00
committed by ErikEk
parent 8ce3622792
commit 619c8f4eb8
8 changed files with 12 additions and 16 deletions

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"net"
"net/url"
"os"
@@ -547,7 +547,7 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) {
if err != nil {
return nil, nil, err
}
rpcCert, err = ioutil.ReadAll(certFile)
rpcCert, err = io.ReadAll(certFile)
if err != nil {
return nil, nil, err
}