Skip to content

Commit

Permalink
fix(transform): Add SkipMissingValues Flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jshlbrd committed Nov 7, 2024
1 parent 56584c5 commit 6276aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transform/test_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type testMessage struct {

func (tf *testMessage) Transform(_ context.Context, msg *message.Message) ([]*message.Message, error) {
if msg.HasFlag(message.IsControl) {
m := message.New().SetData(anyToBytes(tf.conf.Value))
m := message.New().SetData(anyToBytes(tf.conf.Value)).SkipMissingValues()
return []*message.Message{m, msg}, nil
}

Expand Down

0 comments on commit 6276aff

Please sign in to comment.