Skip to content

Commit

Permalink
Added some specs and documentation to riak_core_ring_manager while
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Grosch committed Oct 14, 2020
1 parent ff3adf1 commit f76b144
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/riak_core_ring_manager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@

-behaviour(gen_server).

-type ring() :: riak_core_ring:riak_core_ring().

-export([start_link/0, start_link/1, get_my_ring/0,
get_raw_ring/0, get_raw_ring_chashbin/0,
get_chash_bin/0, get_ring_id/0, refresh_my_ring/0,
Expand Down Expand Up @@ -128,6 +130,8 @@ get_my_ring() ->
undefined -> {error, no_ring}
end.

%% @doc Retrieve the ring currently stored on this local node.
-spec get_raw_ring() -> ring().
get_raw_ring() ->
try Ring = ets:lookup_element(?ETS, raw_ring, 2),
{ok, Ring}
Expand Down

0 comments on commit f76b144

Please sign in to comment.