From d3caccbb55c8bb69e4c33e363738abf8c482ef65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sat, 10 Jun 2023 16:47:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=97=A5=E5=BF=97=E6=97=B6?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E8=8A=82=E7=82=B9ID=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/remotelogs/utils.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/remotelogs/utils.go b/internal/remotelogs/utils.go index 425c212..abd43d3 100644 --- a/internal/remotelogs/utils.go +++ b/internal/remotelogs/utils.go @@ -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 }