Skip to content

Commit

Permalink
undo wait for completion timeout setting too 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Apr 22, 2020
1 parent 6688d68 commit 51f52bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function asyncSearch(
const path = encodeURI(request.id ? `/_async_search/${request.id}` : `/${index}/_async_search`);

// Wait up to 1s for the response to return
const query = toSnakeCase({ waitForCompletionTimeout: '5s', ...queryParams });
const query = toSnakeCase({ waitForCompletionTimeout: '1s', ...queryParams });

const { response, id } = (await caller(
'transport.request',
Expand Down

0 comments on commit 51f52bc

Please sign in to comment.