Skip to content

Commit

Permalink
khepri_machine: Use the new ra_server:command_priority() type
Browse files Browse the repository at this point in the history
We can get rid of the `ra_server_command_priority()` type used as a stop
gap.
  • Loading branch information
dumbbell committed Mar 23, 2022
1 parent d9c4d60 commit 66b7344
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/khepri_machine.erl
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,11 @@
%% This is used when the tree is walked back up to determine the list of tree
%% nodes to remove after some keep_while condition evaluates to false.

-type ra_server_command_priority() :: normal | low.
%% Redefines `ra_server:command_priority()' while there is no release of Ra
%% defining it.

-type async_option() :: boolean() |
ra_server:command_correlation() |
ra_server_command_priority() |
ra_server:command_priority() |
{ra_server:command_correlation(),
ra_server_command_priority()}.
ra_server:command_priority()}.
%% Option to indicate if the command should be synchronous or asynchronous.
%%
%% Values are:
Expand Down Expand Up @@ -892,7 +888,7 @@ process_async_command(StoreId, Command, Correlation, Priority) ->
Options :: command_options(),
CommandType :: sync | {async, Correlation, Priority},
Correlation :: ra_server:command_correlation(),
Priority :: ra_server_command_priority().
Priority :: ra_server:command_priority().
%% @doc Selects the command type depending on what the caller wants.
%%
%% @private
Expand Down

0 comments on commit 66b7344

Please sign in to comment.