Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Make changes_callback end request when limit=1
Prior to this commit, the limit was hit when limit=0 by the first
changes_callback function clause. This makes maybe_finish end the
request when limit=1, so that it doesn't have to wait for another change
to end the request.

BugzID: 26166
  • Loading branch information
sagelywizard authored and rnewson committed Aug 7, 2014
1 parent 129b7c1 commit c0f03829df9444c72e3b5c73143d2ada3f3ca0e2
Showing 1 changed file with 1 addition and 1 deletion.
@@ -182,7 +182,7 @@ changes_callback({error, Reason}, Acc) ->

maybe_finish(Acc) ->
case Acc#acc.limit of
0 ->
1 ->
{stop, Acc};
undefined ->
{ok, Acc};

0 comments on commit c0f0382

Please sign in to comment.