Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add request timeout #1554

Merged
merged 5 commits into from
Sep 27, 2023
Merged

Conversation

amit-ksh
Copy link
Contributor

@amit-ksh amit-ksh commented Aug 3, 2023

Pull Request

Related issue

Fixes #716

What does this PR do?

  • Added the timeout property to the config.
  • Added a test to search.test.ts which cancels the timeout after 1 millisecond.

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

src/http-requests.ts Outdated Show resolved Hide resolved
src/http-requests.ts Outdated Show resolved Hide resolved
amit-ksh and others added 2 commits August 29, 2023 20:09
Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
@amit-ksh
Copy link
Contributor Author

Hey @bidoubiwa, I'll fix the code and test tomorrow since renaming the variable caused the test to fail.

src/http-requests.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@bidoubiwa bidoubiwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✨

@bidoubiwa
Copy link
Contributor

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented Sep 27, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The user should be able to change the requests timeout
2 participants