域名服务集群创建时可以选择开启访问日志

This commit is contained in:
GoEdgeLab
2021-06-05 15:39:02 +08:00
parent edb8484c5c
commit 052d32379c
2 changed files with 7 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ func (this *NSClusterService) CreateNSCluster(ctx context.Context, req *pb.Creat
return nil, err
}
var tx = this.NullTx()
clusterId, err := nameservers.SharedNSClusterDAO.CreateCluster(tx, req.Name)
clusterId, err := nameservers.SharedNSClusterDAO.CreateCluster(tx, req.Name, req.AccessLogJSON)
if err != nil {
return nil, err
}