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