Permalink
Browse files

Reorder type specifications to avoid compile-time warning.

  • Loading branch information...
1 parent a3ab9a4 commit de57ba7eb5a88c4a3d9f12829cc85300f8f77eaf @jcomellas jcomellas committed Dec 27, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/gen_leader.erl
View
@@ -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'.

0 comments on commit de57ba7

Please sign in to comment.