Skip to content

Commit

Permalink
Avoid unnecessary deepcopy during config generation
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Dec 2, 2024
1 parent 9bbea06 commit 928f1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/agent/application/coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ func (c *Coordinator) generateComponentModel() (err error) {
c.setComponentGenError(err)
}()

ast := c.ast.Clone()
ast := c.ast.ShallowClone()
inputs, ok := transpiler.Lookup(ast, "inputs")
if ok {
renderedInputs, err := transpiler.RenderInputs(inputs, c.vars)
Expand Down

0 comments on commit 928f1e1

Please sign in to comment.