Skip to content
Browse files

Fix some type specifications to pass dialyzer

  • Loading branch information...
1 parent 9acabdb commit 7ec00a08f438c936c191bdb78b184bb03466e739 @mgregson mgregson committed Nov 12, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 include/eredis_sub.hrl
  2. +1 −1 src/eredis_sub.erl
  3. +1 −1 src/eredis_sub_client.erl
View
2 include/eredis_sub.hrl
@@ -3,7 +3,7 @@
host :: string() | undefined,
port :: integer() | undefined,
password :: binary() | undefined,
- reconnect_sleep :: integer() | undefined,
+ reconnect_sleep :: integer() | undefined | no_reconnect,
socket :: port() | undefined,
parser_state :: #pstate{} | undefined,
View
2 src/eredis_sub.erl
@@ -35,7 +35,7 @@ start_link(Host, Port, Password, ReconnectSleep,
when is_list(Host) andalso
is_integer(Port) andalso
is_list(Password) andalso
- is_integer(ReconnectSleep) orelse ReconnectSleep =:= no_reconnect andalso
+ (is_integer(ReconnectSleep) orelse ReconnectSleep =:= no_reconnect) andalso
(is_integer(MaxQueueSize) orelse MaxQueueSize =:= infinity) andalso
(QueueBehaviour =:= drop orelse QueueBehaviour =:= exit) ->
View
2 src/eredis_sub_client.erl
@@ -30,7 +30,7 @@
Port::integer(),
Password::string(),
ReconnectSleep::reconnect_sleep(),
- MaxQueueSize::integer(),
+ MaxQueueSize::integer() | infinity,
QueueBehaviour::drop | exit) ->
{ok, Pid::pid()} | {error, Reason::term()}.
start_link(Host, Port, Password, ReconnectSleep, MaxQueueSize, QueueBehaviour) ->

0 comments on commit 7ec00a0

Please sign in to comment.
Something went wrong with that request. Please try again.