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

Allowing asynchronous ES queries #36

Merged
merged 1 commit into from Feb 21, 2016

Conversation

wk8
Copy link
Contributor

@wk8 wk8 commented Feb 21, 2016

Using hackney's option async

%% that's when the options passed to hackney included `async'
%% this reference can then be used to match the messages from
%% hackney when ES replies; see the hackney doc for more information
{ok, ClientRef};
{error, R} ->
{error, R}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that I was tempted to replace the last 2 clauses, that essentially do nothing, by just a catch-all clause
Else -> Else, but that seemed to be somewhat opposed to the spirit of your code. Happy to change if you think it'd be better :) thanks!

Using hackney's option `async`

Wrapping hackney's reference in an `{async, Ref}' tuple to make it
easy to match.

Had to update the specs to account for that change
tsloughter added a commit that referenced this pull request Feb 21, 2016
Allowing asynchronous ES queries
@tsloughter tsloughter merged commit f1b3b0a into tsloughter:master Feb 21, 2016
@wk8
Copy link
Contributor Author

wk8 commented Feb 21, 2016

Thanks for merging :)

@wk8 wk8 deleted the wk8/allow_async_queries branch February 21, 2016 19:50
@wk8 wk8 restored the wk8/allow_async_queries branch February 22, 2016 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants