Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
This was a silly off-by-one error while counting
The start message doesn't count as a row so we don't want to adjust
Acc#acc.limit based on that message.

BugzId: 26165
  • Loading branch information
davisp authored and rnewson committed Aug 7, 2014
1 parent d58fce1 commit 129b7c17e12752508004b3af4b548e48f981bd2d
Showing 1 changed file with 2 additions and 3 deletions.
@@ -135,12 +135,11 @@ changes_callback(start, Acc) ->
#acc{resp=Req} = Acc,
FirstChunk = "{\"results\":[\n",
{ok, Resp} = chttpd:start_delayed_json_response(Req, 200, [], FirstChunk),
Acc1 = Acc#acc{
{ok, Acc#acc{
resp=Resp,
prepend="",
last_data_sent_time=os:timestamp()
},
maybe_finish(Acc1);
}};
changes_callback({change, Change0}, Acc) ->
#acc{resp=Resp, prepend=Prepend, username=Username} = Acc,
case transform_change(Username, Resp, Change0) of

0 comments on commit 129b7c1

Please sign in to comment.