|
@@ -8,7 +8,6 @@ import (
|
|
|
v1 "github.com/go-nunu/nunu-layout-advanced/api/v1"
|
|
|
"github.com/go-nunu/nunu-layout-advanced/internal/model"
|
|
|
"github.com/go-nunu/nunu-layout-advanced/internal/repository"
|
|
|
- "go.uber.org/zap"
|
|
|
"maps"
|
|
|
"sort"
|
|
|
"strconv"
|
|
@@ -273,7 +272,6 @@ func (service *formatterService) ValidateBackendData(ctx context.Context, data m
|
|
|
|
|
|
// 计算源机IP数
|
|
|
for _, addr := range item.Addr {
|
|
|
- service.logger.Info(addr)
|
|
|
parts := strings.Split(addr, ":")
|
|
|
if len(parts) > 0 {
|
|
|
sourceIPs[parts[0]] = true
|
|
@@ -306,9 +304,6 @@ func (service *formatterService) ValidateBackendData(ctx context.Context, data m
|
|
|
}
|
|
|
|
|
|
// 验证源机数量
|
|
|
- service.logger.Info("配置源机数量", zap.Int64("count", configCount.SourceMachinesCount))
|
|
|
- service.logger.Info("合并后源机数量", zap.Int("count", len(sourceIPs)))
|
|
|
- service.logger.Info("源机列表", zap.Any("list", sourceIPs))
|
|
|
if int64(len(sourceIPs)) > configCount.SourceMachinesCount {
|
|
|
return fmt.Errorf("超出最大源机数量,当前配置允许%d个源机,合并后有%d个源机",
|
|
|
configCount.SourceMachinesCount, len(sourceIPs))
|