Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #134 from cloudant/24518-attachment-metadata
Browse files Browse the repository at this point in the history
Move attachment code into couch_att
  • Loading branch information
Brian Mitchell committed Feb 12, 2014
2 parents 9118937 + 9cdb93e commit fc7b7dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fabric_rpc.erl
Expand Up @@ -489,7 +489,7 @@ make_att_readers([]) ->
make_att_readers([#doc{atts=Atts0} = Doc | Rest]) ->
% % go through the attachments looking for 'follows' in the data,
% % replace with function that reads the data from MIME stream.
Atts = [Att#att{data=make_att_reader(D)} || #att{data=D} = Att <- Atts0],
Atts = [couch_att:transform(data, fun make_att_reader/1, Att) || Att <- Atts0],
[Doc#doc{atts = Atts} | make_att_readers(Rest)].

make_att_reader({follows, Parser}) ->
Expand Down
2 changes: 1 addition & 1 deletion src/fabric_rpc2.erl
Expand Up @@ -520,7 +520,7 @@ make_att_readers([]) ->
make_att_readers([#doc{atts=Atts0} = Doc | Rest]) ->
% % go through the attachments looking for 'follows' in the data,
% % replace with function that reads the data from MIME stream.
Atts = [Att#att{data=make_att_reader(D)} || #att{data=D} = Att <- Atts0],
Atts = [couch_att:transform(data, fun make_att_reader/1, Att) || Att <- Atts0],
[Doc#doc{atts = Atts} | make_att_readers(Rest)].

make_att_reader({follows, Parser}) ->
Expand Down

0 comments on commit fc7b7dc

Please sign in to comment.