优化代码

This commit is contained in:
GoEdgeLab
2023-07-03 17:12:24 +08:00
parent 5085efd7a0
commit faf1289c8f
3 changed files with 7 additions and 6 deletions

View File

@@ -1174,7 +1174,7 @@ func (this *NodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64, dataMap *shared
// UAM
if IsNotNull(nodeCluster.Uam) {
var uamPolicy = &nodeconfigs.UAMPolicy{}
var uamPolicy = nodeconfigs.NewUAMPolicy()
err = json.Unmarshal(nodeCluster.Uam, uamPolicy)
if err != nil {
return nil, err