Skip to content

Commit c9abab9

Browse files
jotakjpinsonneau
andcommitted
Add comment
Co-authored-by: Julien Pinsonneau <[email protected]>
1 parent e99ca07 commit c9abab9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/pipeline/transform/transform_filter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func (f *Filter) Transform(input []config.GenericMap) []config.GenericMap {
3232
log.Debugf("f = %v", f)
3333
output := make([]config.GenericMap, 0)
3434
for _, entry := range input {
35+
// copy input entry before transform to avoid alteration on parallel stages
3536
outputEntry := entry.Copy()
3637
addToOutput := true
3738
for _, rule := range f.Rules {

pkg/pipeline/transform/transform_network.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func (n *Network) Transform(input []config.GenericMap) []config.GenericMap {
4949
}
5050

5151
func (n *Network) TransformEntry(inputEntry config.GenericMap) config.GenericMap {
52+
// copy input entry before transform to avoid alteration on parallel stages
5253
outputEntry := inputEntry.Copy()
5354

5455
for _, rule := range n.Rules {

0 commit comments

Comments
 (0)