Skip to content

Commit

Permalink
Fix variable name (W -> Wq).
Browse files Browse the repository at this point in the history
  • Loading branch information
cabol committed Mar 12, 2015
1 parent 10ad7ce commit 0a7f213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sumo_store_riak.erl
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@ doc_id(Doc) ->
sumo_internal:get_field(IdField, Doc).

%% @private
new_doc(Doc, #state{conn = Conn, bucket = Bucket, write_quorum = W}) ->
new_doc(Doc, #state{conn = Conn, bucket = Bucket, write_quorum = Wq}) ->
DocName = sumo_internal:doc_name(Doc),
IdField = sumo_internal:id_field_name(DocName),
Id = case sumo_internal:get_field(IdField, Doc) of
undefined ->
case update_map(Conn, Bucket, undefined, doc_to_rmap(Doc), W) of
case update_map(Conn, Bucket, undefined, doc_to_rmap(Doc), Wq) of
{ok, RiakMapId} -> RiakMapId;
{error, Error} -> throw(Error);
_ -> throw(unexpected)
Expand Down

0 comments on commit 0a7f213

Please sign in to comment.