From bd4519fea86110c626637cd88c676cbc6bc39a19 Mon Sep 17 00:00:00 2001 From: Bradley Kemp Date: Wed, 4 Sep 2024 15:27:58 +0100 Subject: [PATCH] plumb through context --- iok.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iok.go b/iok.go index 10c6457..59da42e 100644 --- a/iok.go +++ b/iok.go @@ -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)