Skip to content

Commit

Permalink
fix(producer): should parse with empty config (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn authored Aug 21, 2024
1 parent d4bffe2 commit 127c1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion producer/proto/config_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 127c1a3

Please sign in to comment.