Skip to content

Commit

Permalink
fix(sysflow): fix double call to StartWorkers() function when policy …
Browse files Browse the repository at this point in the history
…are reloaded (#1)

Ref: EXP-2010

Signed-off-by: Mauro Sardara <[email protected]>
  • Loading branch information
msardara committed Feb 12, 2024
1 parent 564d3f0 commit f05648a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/policyengine/policyengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ func (s *PolicyEngine) Init(conf map[string]interface{}) (err error) {
logger.Error.Printf("Unable to compile local policies from directory %s, %v", s.config.PoliciesPath, err)
return
}

// start workers
s.pi.StartWorkers()
} else {
s.policyMonitor, err = monitor.NewPolicyMonitor(s.config, s.createPolicyInterpreter, s.out)
if err != nil {
Expand Down Expand Up @@ -197,9 +200,6 @@ func (s *PolicyEngine) createPolicyInterpreter() (*engine.PolicyInterpreter[*com
return nil, err
}

// start workers
pi.StartWorkers()

return pi, nil
}

Expand Down

0 comments on commit f05648a

Please sign in to comment.