将api.yaml修改为api_node.yaml

This commit is contained in:
GoEdgeLab
2023-08-12 15:08:22 +08:00
parent 518eddebd2
commit fcae9554af
11 changed files with 70 additions and 54 deletions

View File

@@ -229,7 +229,7 @@ func (this *RPCClient) TestEndpoints(endpoints []string) bool {
func (this *RPCClient) init() error {
// 重新连接
var conns = []*grpc.ClientConn{}
for _, endpoint := range this.apiConfig.RPC.Endpoints {
for _, endpoint := range this.apiConfig.RPCEndpoints {
u, err := url.Parse(endpoint)
if err != nil {
return fmt.Errorf("parse endpoint failed: %w", err)