Explorar el Código

ft: Ppt相关添加

master
SisMaker hace 3 años
padre
commit
ab522569a8
Se han modificado 3 ficheros con 1 adiciones y 57 borrados
  1. +0
    -1
      rebar.config
  2. +1
    -10
      src/eNet_sup.erl
  3. +0
    -46
      src/mgr/ntMgr.erl

+ 0
- 1
rebar.config Ver fichero

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

+ 1
- 10
src/eNet_sup.erl Ver fichero

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

+ 0
- 46
src/mgr/ntMgr.erl Ver fichero

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

Cargando…
Cancelar
Guardar