Dialyzer fixes (#5)
Reviewed-on: #5 Co-authored-by: Craig Everett <zxq9@zxq9.com> Co-committed-by: Craig Everett <zxq9@zxq9.com>
This commit was merged in pull request #5.
This commit is contained in:
+3
-3
@@ -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}.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user