Changed to use TODO per @mukundansundar's feedback

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
ItalyPaleAle 2022-10-06 19:09:14 +00:00
parent b59b443ffb
commit 592b1dd86b
1 changed files with 1 additions and 1 deletions

View File

@ -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),