上传日志时检查节点ID是否为0

This commit is contained in:
刘祥超
2023-06-10 16:47:27 +08:00
parent f95bac8d38
commit d3caccbb55

View File

@@ -289,6 +289,10 @@ Loop:
for { for {
select { select {
case log := <-logChan: case log := <-logChan:
if log.NodeId <= 0 {
continue
}
// 是否已存在 // 是否已存在
var hash = xxhash.Sum64String(types.String(log.ServerId) + "_" + log.Description) var hash = xxhash.Sum64String(types.String(log.ServerId) + "_" + log.Description)
var found = false var found = false
@@ -312,6 +316,7 @@ Loop:
break Loop break Loop
} }
} }
if len(logList) == 0 { if len(logList) == 0 {
return nil return nil
} }