mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-07 10:40:26 +08:00
上传日志时检查节点ID是否为0
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user