From fca120f299df7fd78fc1681993f4745d1bfc3ce2 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Thu, 15 Jul 2010 14:28:11 -0400 Subject: update to new _changes feed format --- src/fabric_rpc.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fabric_rpc.erl') diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl index 68733de6..e1bd6831 100644 --- a/src/fabric_rpc.erl +++ b/src/fabric_rpc.erl @@ -322,11 +322,11 @@ send(Key, Value, #view_acc{limit=Limit} = Acc) -> exit(timeout) end. -changes_enumerator(DocInfos, {Db, _Seq, Args}) -> +changes_enumerator(DocInfo, {Db, _Seq, Args}) -> #changes_args{include_docs=IncludeDocs, filter=FilterFun} = Args, - [#doc_info{id=Id, high_seq=Seq, revs=[#rev_info{deleted=Del,rev=Rev}|_]}|_] - = DocInfos, - case [Result || Result <- FilterFun(DocInfos), Result /= null] of + #doc_info{id=Id, high_seq=Seq, revs=[#rev_info{deleted=Del,rev=Rev}|_]} + = DocInfo, + case [Result || Result <- FilterFun(DocInfo), Result /= null] of [] -> {ok, {Db, Seq, Args}}; Results -> -- cgit v1.2.3