修改初始化方法
This commit is contained in:
@@ -61,8 +61,8 @@ func (r *Request) Send(methodName string, body any, responseBody any) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 初始化请求类
|
||||
func InitiateRequest(host string, port uint16, rootCertPath string) error {
|
||||
// 初始化
|
||||
func Initiate(host string, port uint16, rootCertPath string) error {
|
||||
rootCert, err := os.ReadFile(rootCertPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("cert file read fail")
|
||||
|
||||
Reference in New Issue
Block a user