From 127c1a3272125fa41c22af7e93ac14700711793d Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 20 Aug 2024 21:52:32 -0700 Subject: [PATCH] fix(producer): should parse with empty config (#347) --- producer/proto/config_impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/producer/proto/config_impl.go b/producer/proto/config_impl.go index b00dfb3f..94acd9a4 100644 --- a/producer/proto/config_impl.go +++ b/producer/proto/config_impl.go @@ -203,7 +203,7 @@ func (m *SFlowMapper) Map(layer string) MapLayerIterator { func (m *SFlowMapper) ParsePacket(flowMessage ProtoProducerMessageIf, data []byte) (err error) { if m == nil { - return nil + return ParsePacket(flowMessage, data, m, DefaultEnvironment) } return ParsePacket(flowMessage, data, m, m.parserEnvironment) }