From 84c21b4801006f957f59a8e0346be85d0ec52279 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Wed, 11 May 2022 17:42:16 +0800 Subject: [PATCH] refactor --- agent/reader.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/agent/reader.go b/agent/reader.go index a2b89af..2cf9ec6 100644 --- a/agent/reader.go +++ b/agent/reader.go @@ -113,6 +113,11 @@ func (r *Reader) read() { // queue closed return } + + if item == nil { + continue + } + series = append(series, convert(item)) count++ if count >= batch {