Dialyzer fixes #5
@ -77,7 +77,7 @@ chain_nodes() ->
|
||||
|
||||
|
||||
-spec chain_nodes(ToUse) -> ok
|
||||
when ToUse :: [hz:chain_nodes()].
|
||||
when ToUse :: [hz:chain_node()].
|
||||
|
||||
chain_nodes(ToUse) ->
|
||||
gen_server:cast(?MODULE, {chain_nodes, ToUse}).
|
||||
@ -164,7 +164,7 @@ handle_cast({tls, Boolean}, State) ->
|
||||
NewState = do_tls(Boolean, State),
|
||||
{noreply, NewState};
|
||||
handle_cast({chain_nodes, []}, State) ->
|
||||
{noreply, State#s{chain_nodes = none}};
|
||||
{noreply, State#s{chain_nodes = {[], []}}};
|
||||
handle_cast({chain_nodes, ToUse}, State) ->
|
||||
{noreply, State#s{chain_nodes = {ToUse, []}}};
|
||||
handle_cast({timeout, Value}, State) ->
|
||||
@ -178,7 +178,7 @@ handle_info({'DOWN', Mon, process, PID, Info}, State) ->
|
||||
NewState = handle_down(PID, Mon, Info, State),
|
||||
{noreply, NewState};
|
||||
handle_info(Unexpected, State) ->
|
||||
ok = log("Unexpected info: ~tp~n", [Unexpected]),
|
||||
ok = log(warning, "Unexpected info: ~tp~n", [Unexpected]),
|
||||
{noreply, State}.
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user