Skip to content

Commit

Permalink
[TSVB] Set listener limit to abort signal correctly (#132624)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored May 30, 2022
1 parent 086a895 commit eacbbbd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ export abstract class AbstractSearchStrategy {
) {
const requests: any[] = [];

// User may abort the request without waiting for the results
// we need to handle this scenario by aborting underlying server requests
const abortSignal = getRequestAbortedSignal(req.events.aborted$);
const searchContext = await requestContext.search;

esRequests.forEach(({ body, index, trackingEsSearchMeta }) => {
// User may abort the request without waiting for the results
// we need to handle this scenario by aborting underlying server requests
const abortSignal = getRequestAbortedSignal(req.events.aborted$);
const startTime = Date.now();
requests.push(
searchContext
Expand Down

0 comments on commit eacbbbd

Please sign in to comment.