Skip to content

Commit 127c1a3

Browse files
authored
fix(producer): should parse with empty config (#347)
1 parent d4bffe2 commit 127c1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

producer/proto/config_impl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (m *SFlowMapper) Map(layer string) MapLayerIterator {
203203

204204
func (m *SFlowMapper) ParsePacket(flowMessage ProtoProducerMessageIf, data []byte) (err error) {
205205
if m == nil {
206-
return nil
206+
return ParsePacket(flowMessage, data, m, DefaultEnvironment)
207207
}
208208
return ParsePacket(flowMessage, data, m, m.parserEnvironment)
209209
}

0 commit comments

Comments
 (0)