Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Pinsonneau <[email protected]>
  • Loading branch information
jotak and jpinsonneau committed Jun 24, 2022
1 parent e99ca07 commit c9abab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/pipeline/transform/transform_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func (f *Filter) Transform(input []config.GenericMap) []config.GenericMap {
log.Debugf("f = %v", f)
output := make([]config.GenericMap, 0)
for _, entry := range input {
// copy input entry before transform to avoid alteration on parallel stages
outputEntry := entry.Copy()
addToOutput := true
for _, rule := range f.Rules {
Expand Down
1 change: 1 addition & 0 deletions pkg/pipeline/transform/transform_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (n *Network) Transform(input []config.GenericMap) []config.GenericMap {
}

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

for _, rule := range n.Rules {
Expand Down

0 comments on commit c9abab9

Please sign in to comment.