将api.yaml修改为api_admin.yaml

This commit is contained in:
GoEdgeLab
2023-08-12 17:58:00 +08:00
parent 769c1b79d6
commit b06c44bebf
19 changed files with 113 additions and 114 deletions

View File

@@ -523,7 +523,7 @@ 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)