简化依赖

This commit is contained in:
anlicheng 2025-04-29 22:37:08 +08:00
parent 184a5cff94
commit f69a600d4f
3 changed files with 3 additions and 9 deletions

View File

@ -6,13 +6,11 @@
{applications,
[
sync,
hackney,
lager,
esockd,
%jiffy,
%gpb,
%mnesia,
crypto,
inets,
ssl,
public_key,
kernel,

View File

@ -159,7 +159,7 @@ handle_event(info, {server_push_message, PacketId, <<16:8, Directive>>}, ?STATE_
%% transport进程退出
handle_event(info, {'EXIT', TransportPid, Reason}, _StateName, State = #state{transport_pid = TransportPid}) ->
lager:warning("[efka_agent] transport pid: ~p, exit with reason: ~p", [TransportPid, Reason]),
erlang:start_timer(5000, self(), create_transport),
erlang:start_timer(500000, self(), create_transport),
{next_state, ?STATE_DENIED, State#state{transport_pid = undefined}};
handle_event(_EventType, _EventContent, _StateName, State = #state{}) ->

View File

@ -1,12 +1,8 @@
{erl_opts, [debug_info]}.
{deps, [
{hackney, ".*", {git, "https://github.com/benoitc/hackney.git", {tag, "1.17.0"}}},
{sync, ".*", {git, "https://github.com/rustyio/sync.git", {branch, "master"}}},
{esockd, ".*", {git, "https://github.com/emqx/esockd.git", {tag, "v5.8.0"}}},
{jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {tag, "1.1.2"}}},
{gpb, ".*", {git, "https://github.com/tomas-abrahamsson/gpb.git", {tag, "4.20.0"}}},
{parse_trans, ".*", {git, "https://github.com/uwiger/parse_trans", {tag, "3.0.0"}}},
{lager, ".*", {git,"https://github.com/erlang-lager/lager.git", {tag, "3.9.2"}}}
{gpb, ".*", {git, "https://github.com/tomas-abrahamsson/gpb.git", {tag, "4.20.0"}}}
]}.
{relx, [{release, {efka, "0.1.0"},