优化代码

This commit is contained in:
GoEdgeLab
2022-09-23 11:09:21 +08:00
parent 6bd2ac0d2b
commit 2c0a13698f
18 changed files with 30 additions and 23 deletions

View File

@@ -25,6 +25,7 @@ func (this *DeleteAction) RunPost(params struct {
var apiNode = nodeResp.ApiNode
if apiNode == nil {
this.Success()
return
}
if apiNode.IsOn {
countResp, err := this.RPC().APINodeRPC().CountAllEnabledAndOnAPINodes(this.AdminContext(), &pb.CountAllEnabledAndOnAPINodesRequest{})