From 592b1dd86b2ceb3997af72bdd4772ec799140334 Mon Sep 17 00:00:00 2001 From: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> Date: Thu, 6 Oct 2022 19:09:14 +0000 Subject: [PATCH] Changed to use TODO per @mukundansundar's feedback Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> --- middleware/http/opa/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/http/opa/middleware.go b/middleware/http/opa/middleware.go index 61c54fb57..3d6bcc9ae 100644 --- a/middleware/http/opa/middleware.go +++ b/middleware/http/opa/middleware.go @@ -112,7 +112,7 @@ func (m *Middleware) GetHandler(metadata middleware.Metadata) (func(next http.Ha return nil, err } - ctx, cancel := context.WithTimeout(context.Background(), time.Minute) + ctx, cancel := context.WithTimeout(context.TODO(), time.Minute) query, err := rego.New( rego.Query("result = data.http.allow"), rego.Module("inline.rego", meta.Rego),