feature (cancellation): logic to cancel request in client and server

This commit is contained in:
Mickael Kerjean
2022-09-02 17:24:36 +10:00
parent 0bfab6eff2
commit dd6f0ca407
6 changed files with 28 additions and 9 deletions

View File

@ -147,7 +147,7 @@ func FetchAuditHandler(ctx *App, res http.ResponseWriter, req *http.Request) {
}
searchParams[key] = element[0]
}
result, err := plg.Query(searchParams)
result, err := plg.Query(ctx, searchParams)
if err != nil {
SendErrorResult(res, err)
return