Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Reordered type specification to avoid a compile-time warning #2

Merged
1 commit merged into from

2 participants

@jcomellas

Reordered the type specification for bcast_type to avoid a compile-time warning. With the rebar settings used in the project this warning becomes a compilation failure.

@abecciu
Owner

Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 27, 2010
  1. @jcomellas
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/gen_leader.erl
View
10 src/gen_leader.erl
@@ -92,6 +92,11 @@
]).
+%% 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()}
@@ -99,11 +104,6 @@
-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'.
Something went wrong with that request. Please try again.