summaryrefslogtreecommitdiff
path: root/src/fabric/src/fabric.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fabric/src/fabric.erl')
-rw-r--r--src/fabric/src/fabric.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fabric/src/fabric.erl b/src/fabric/src/fabric.erl
index 5c517a3bd..185ffebe5 100644
--- a/src/fabric/src/fabric.erl
+++ b/src/fabric/src/fabric.erl
@@ -289,13 +289,14 @@ purge_docs(_DbName, _IdsRevs) ->
not_implemented.
%% @doc spawns a process to upload attachment data and
-%% returns a function that shards can use to communicate
-%% with the spawned middleman process
+%% returns a fabric attachment receiver context tuple
+%% with the spawned middleman process, an empty binary,
+%% or exits with an error tuple {Error, Arg}
-spec att_receiver(#httpd{}, Length :: undefined | chunked | pos_integer() |
{unknown_transfer_encoding, any()}) ->
- function() | binary().
+ {fabric_attachment_receiver, pid(), chunked | pos_integer()} | binary().
att_receiver(Req, Length) ->
- fabric_doc_attachments:receiver(Req, Length).
+ fabric_doc_atts:receiver(Req, Length).
%% @equiv all_docs(DbName, [], Callback, Acc0, QueryArgs)
all_docs(DbName, Callback, Acc, QueryArgs) ->