Fix types

This commit is contained in:
Craig Everett 2025-03-06 16:29:10 +09:00
parent bf14ccf27b
commit 52d248be95

View File

@ -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}.