优化TOA相关代码

This commit is contained in:
GoEdgeLab
2023-07-24 15:33:44 +08:00
parent c48cedd30c
commit 2d8228996f
2 changed files with 3 additions and 3 deletions

View File

@@ -1102,7 +1102,7 @@ func (this *NodeClusterService) FindEnabledNodeClusterConfigInfo(ctx context.Con
// toa
if models.IsNotNull(cluster.Toa) {
var toaConfig = &nodeconfigs.TOAConfig{}
var toaConfig = nodeconfigs.NewTOAConfig()
err = json.Unmarshal(cluster.Toa, toaConfig)
if err != nil {
return nil, err