Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get dialyzer to give eredis a clean bill of health #31

Merged
merged 1 commit into from
Nov 13, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/eredis_sub.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/eredis_sub.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->

Expand Down
2 changes: 1 addition & 1 deletion src/eredis_sub_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down