在节点详情中显示API节点地址

This commit is contained in:
刘祥超
2022-11-21 21:07:51 +08:00
parent 0dc19bed45
commit 910b3a6162
3 changed files with 40 additions and 7 deletions

View File

@@ -126,6 +126,12 @@ func (this *IndexAction) RunPost(params struct {
if err != nil {
this.Fail("API节点地址校验错误" + err.Error())
}
for _, addr := range apiNodeAddrs {
err = addr.Init()
if err != nil {
this.Fail("API节点地址校验错误" + err.Error())
}
}
}
_, err = this.RPC().NodeRPC().UpdateNodeAPIConfig(this.AdminContext(), &pb.UpdateNodeAPIConfigRequest{
NodeId: params.NodeId,