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

Avoid unnecessary requests by checking most recent url before proceeding #809

Closed
wants to merge 2 commits into from

Conversation

twhitbeck
Copy link
Contributor

fixes #149
Everytime the transport is used to make a request, the url is stashed. When the rateLimited _get goes through, if the url that it is about to make a request for differs from the most recent url, then it aborts.

Tests are passing, but I'm not certain this maintains all desired functionality.

@jharding
Copy link
Contributor

jharding commented Apr 5, 2014

Cool, at first glance this seems like it should do the trick. Before I merge it in, let me think about this a little more to make sure it doesn't have any unintended side effects.

Also, can you revert your changes to the dist/ files? I only generate those at release time. Thanks!

@jharding jharding added this to the v0.10.3 milestone Apr 5, 2014
@twhitbeck
Copy link
Contributor Author

I reverted dist. Yes thanks for looking it over. We don't want any nasty regressions. I should also note that I haven't tested this with a Typeahead, since I'm using bloodhound on its own.

@jharding jharding modified the milestones: v0.10.3, v0.10.4 Jul 8, 2014
@jharding
Copy link
Contributor

jharding commented Jul 8, 2014

Merged into integration-0.10.3 as 917216b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Debounce isn't working correctly
2 participants