diff --git a/rebar.config b/rebar.config index 711210a..aa3059f 100644 --- a/rebar.config +++ b/rebar.config @@ -8,7 +8,6 @@ ]}. {deps, [ - {eGbh, ".*", {git, "http://sismaker.tpddns.cn:53000/SisMaker/eGbh.git", {branch, "master"}}}, {eSync, ".*", {git, "http://sismaker.tpddns.cn:53000/SisMaker/eSync.git", {branch, "master"}}} ]}. diff --git a/src/eNet_sup.erl b/src/eNet_sup.erl index 0a17d70..bb17e4b 100644 --- a/src/eNet_sup.erl +++ b/src/eNet_sup.erl @@ -16,14 +16,5 @@ start_link() -> init(_Args) -> SupFlag = #{strategy => one_for_one, intensity => 100, period => 3600}, - ChildSpecs = [ - #{ - id => ntMgr, - start => {ntMgr, start_link, []}, - restart => permanent, - shutdown => 3000, - type => worker, - modules => [ntMgr] - } - ], + ChildSpecs = [], {ok, {SupFlag, ChildSpecs}}. diff --git a/src/mgr/ntMgr.erl b/src/mgr/ntMgr.erl deleted file mode 100644 index 6bb1e52..0000000 --- a/src/mgr/ntMgr.erl +++ /dev/null @@ -1,46 +0,0 @@ --module(ntMgr). - --behavior(gen_srv). - --include("ntCom.hrl"). - --export([ - start_link/0 -]). - --export([ - init/1 - , handleCall/3 - , handleCast/2 - , handleInfo/2 - , terminate/2 - , code_change/3 -]). - --define(SERVER, ?MODULE). - -%% ******************************************** API ******************************************************************* -start_link() -> - gen_srv:start_link({local, ?SERVER}, ?MODULE, [], []). - -%% ******************************************** callback ************************************************************** -init(_Args) -> - {ok, #{}}. - -handleCall(_Msg, _State, _FROM) -> - ?ntErr("~p call receive unexpect msg ~p ~n ", [?MODULE, _Msg]), - {reply, ok}. - -handleCast(_Msg, _State) -> - ?ntErr("~p cast receive unexpect msg ~p ~n ", [?MODULE, _Msg]), - kpS. - -handleInfo(_Msg, _State) -> - ?ntErr("~p info receive unexpect msg ~p ~n ", [?MODULE, _Msg]), - kpS. - -terminate(_Reason, _State) -> - ok. - -code_change(_OldVsn, State, _Extra) -> - {ok, State}.