Skip to content

Commit

Permalink
plumb through context
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleyjkemp committed Sep 4, 2024
1 parent fff62b5 commit bd4519f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iok.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func GetMatches(input Input) ([]sigma.Rule, error) {
return GetMatchesForRules(input, evaluators)
}

func GetMatchesForRulesBundle(input Input, rules evaluator.RuleEvaluatorBundle) ([]sigma.Rule, error) {
func GetMatchesForRulesBundle(ctx context.Context, input Input, rules evaluator.RuleEvaluatorBundle) ([]sigma.Rule, error) {
matches := []sigma.Rule{}
ruleInput := convertInput(input)
results, err := rules.Matches(context.Background(), ruleInput)
results, err := rules.Matches(ctx, ruleInput)
for _, result := range results {
if result.Match {
matches = append(matches, result.Rule)
Expand Down

0 comments on commit bd4519f

Please sign in to comment.