temporary
This commit is contained in:
parent
1a64e4e373
commit
7ba5772264
|
@ -213,8 +213,9 @@ read_loaded() ->
|
||||||
write_loaded(AppNames) ->
|
write_loaded(AppNames) ->
|
||||||
case file:open(env(loaded_file), [binary, write]) of
|
case file:open(env(loaded_file), [binary, write]) of
|
||||||
{ok, Fd} ->
|
{ok, Fd} ->
|
||||||
Line = list_to_binary(io_lib:format("~w.~n", [AppNames])),
|
lists:foreach(fun(Name) ->
|
||||||
file:write(Fd, Line);
|
file:write(Fd, iolist_to_binary(io_lib:format("~s.~n", [Name])))
|
||||||
|
end, AppNames);
|
||||||
{error, Error} ->
|
{error, Error} ->
|
||||||
{error, Error}
|
{error, Error}
|
||||||
end.
|
end.
|
||||||
|
|
|
@ -57,6 +57,6 @@ start_session(CleanSess, ClientId, ClientPid) ->
|
||||||
init([]) ->
|
init([]) ->
|
||||||
{ok, {{simple_one_for_one, 10, 10},
|
{ok, {{simple_one_for_one, 10, 10},
|
||||||
[{session, {emqttd_session, start_link, []},
|
[{session, {emqttd_session, start_link, []},
|
||||||
transient, 10000, worker, [emqttd_session]}]}}.
|
temporary, 10000, worker, [emqttd_session]}]}}.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue