Explorar el Código

ft: 代码修改

master
SisMaker hace 4 años
padre
commit
1db49af90f
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. +2
    -1
      src/eTpf.erl
  2. +1
    -1
      src/eTpf_sup.erl

+ 2
- 1
src/eTpf.erl Ver fichero

@ -118,7 +118,8 @@ doTrace(InputList, TracerMod, TracerOpts, TraceOpts) ->
id => TracerId,
start => {TracerMod, start_link, [TracerOpts]},
restart => temporary,
type => worker
type => worker,
shutdown => infinity
}),
_Mode = maps:get(mode, TraceOpts, trace),

+ 1
- 1
src/eTpf_sup.erl Ver fichero

@ -7,7 +7,7 @@
]).
-define(SERVER, ?MODULE).
-define(ChildSpec(Id, Type), #{id => Id, start => {Id, start_link, []}, restart => permanent, shutdown => 5000, type => Type, modules => [Id]}).
-define(ChildSpec(Id, Type), #{id => Id, start => {Id, start_link, []}, restart => permanent, shutdown => infinity, type => Type, modules => [Id]}).
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).

Cargando…
Cancelar
Guardar