Skip to content

Commit

Permalink
Reorder type specifications to avoid compile-time warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcomellas committed Dec 27, 2010
1 parent a3ab9a4 commit de57ba7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gen_leader.erl
Expand Up @@ -92,18 +92,18 @@
]).


%% Notification control of candidate membership changes. `all'
%% means that returns from the handle_DOWN/3 and elected/3 leader's events
%% will be broadcast to all candidates.
-type bcast_type() :: 'all' | 'sender'.

-type option() :: {'workers', Workers::[node()]}
| {'vardir', Dir::string()}
| {'bcast_type', Type::bcast_type()}
| {'heartbeat', Seconds::integer()}.

-type options() :: [option()].

%% Notification control of candidate membership changes. `all'
%% means that returns from the handle_DOWN/3 and elected/3 leader's events
%% will be broadcast to all candidates.
-type bcast_type() :: 'all' | 'sender'.

-type status() :: 'elec1' | 'elec2' | 'wait' | 'joining' | 'worker' |
'waiting_worker' | 'norm'.

Expand Down

0 comments on commit de57ba7

Please sign in to comment.