Skip to content

Commit

Permalink
doc_storage: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed Dec 16, 2016
1 parent e13b1e6 commit 38df7f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions core/kazoo_couch/src/kz_couch_attachments.erl
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,14 @@ do_fetch_attachment(#db{}=Db, DocId, AName) ->
?RETRY_504(couchbeam:fetch_attachment(Db, DocId, AName)).

-spec do_stream_attachment(couchbeam_db(), ne_binary(), ne_binary(), pid()) ->
{'ok', reference()} |
{'ok', reference() | atom()} |
couchbeam_error().
do_stream_attachment(#db{}=Db, DocId, AName, Caller) ->
case couchbeam:fetch_attachment(Db, DocId, AName, [{stream, true},{async,true}]) of
case couchbeam:fetch_attachment(Db, DocId, AName, [{'stream', 'true'}
,{'async', 'true'}
]
)
of
{'ok', Ref}=Ret ->
Msg = couchbeam:stream_attachment(Ref),
St = get(Ref),
Expand Down Expand Up @@ -126,4 +130,3 @@ maybe_add_revision(Options) ->
'undefined' -> <<>>;
Rev -> <<"?rev=", Rev/binary>>
end.

2 changes: 1 addition & 1 deletion core/kazoo_couch/src/kz_couch_view.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

-include("kz_couch.hrl").

-type ddoc() :: atom() | ne_binary() | {ne_binary(), ne_binary()}.
-type ddoc() :: 'all_docs' | ne_binary() | {ne_binary(), ne_binary()}.

%%% View-related functions -----------------------------------------------------
-spec design_compact(server(), ne_binary(), ne_binary()) -> boolean().
Expand Down

0 comments on commit 38df7f9

Please sign in to comment.