Skip to content

Commit

Permalink
goddamn data
Browse files Browse the repository at this point in the history
  • Loading branch information
Cliff Moon committed May 25, 2010
1 parent 63daac6 commit a605c48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/luwak/src/luwak_block.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ create(Riak, Data) ->
Obj = riak_object:new(?N_BUCKET, skerl:hexhash(?HASH_LEN, Data), Value),
{Riak:put(Obj,2), Obj}.

data(Val) when is_list(Val) ->
proplists:get_value(data, Val);
data(Object) ->
proplists:get_value(data, riak_object:get_value(Object)).

Expand Down

0 comments on commit a605c48

Please sign in to comment.