mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 15:00:26 +08:00
上传日志时检查节点ID是否为0
This commit is contained in:
@@ -289,6 +289,10 @@ Loop:
|
||||
for {
|
||||
select {
|
||||
case log := <-logChan:
|
||||
if log.NodeId <= 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
// 是否已存在
|
||||
var hash = xxhash.Sum64String(types.String(log.ServerId) + "_" + log.Description)
|
||||
var found = false
|
||||
@@ -312,6 +316,7 @@ Loop:
|
||||
break Loop
|
||||
}
|
||||
}
|
||||
|
||||
if len(logList) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user