From ad16c561a633c7b051ec21a68f8bd3b3df6a3576 Mon Sep 17 00:00:00 2001 From: Jiquan Long Date: Tue, 12 Sep 2023 13:39:17 +0800 Subject: [PATCH] Fix printing too many warnings (#27015) Signed-off-by: longjiquan --- internal/util/flowgraph/node.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/util/flowgraph/node.go b/internal/util/flowgraph/node.go index f29e923a3e526..efb9dbbce063c 100644 --- a/internal/util/flowgraph/node.go +++ b/internal/util/flowgraph/node.go @@ -201,6 +201,11 @@ func (node *BaseNode) IsValidInMsg(in []Msg) bool { return false } + if len(in) == 0 { + // avoid printing too many logs. + return false + } + if len(in) != 1 { return false }