Skip to content

Commit

Permalink
Correct types on get_modstate/1
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Sep 12, 2024
1 parent a14ef2e commit 36945a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/riak_core_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,10 @@ queue_work(PoolName, Work, From, VnodeWrkPool) ->
%% ===================================================================

%% @doc Reveal the underlying module state for testing
-spec(get_modstate(pid()) -> {atom(), #state{}}).
-spec get_modstate(pid()) -> {module(), term()}.
get_modstate(Pid) ->
{_StateName, State} = gen_fsm:sync_send_all_state_event(Pid, current_state),
{_StateName, State} =
gen_fsm:sync_send_all_state_event(Pid, current_state),
{State#state.mod, State#state.modstate}.

-ifdef(TEST).
Expand Down

0 comments on commit 36945a0

Please sign in to comment.