Przeglądaj źródła

Change the restart strategy of the top supervisor

Feng Lee 9 lat temu
rodzic
commit
d91e49a5a5
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      src/emqttd_sup.erl

+ 4 - 3
src/emqttd_sup.erl

@@ -1,5 +1,5 @@
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
-%% Copyright (c) 2012-2017 Feng Lee <feng@emqtt.io>.
+%% Copyright (c) 2013-2017 EMQ Enterprise, Inc. (http://emqtt.io)
 %%
 %%
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
 %% you may not use this file except in compliance with the License.
@@ -14,11 +14,12 @@
 %% limitations under the License.
 %% limitations under the License.
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
 
 
-%% @doc emqttd top supervisor.
 -module(emqttd_sup).
 -module(emqttd_sup).
 
 
 -behaviour(supervisor).
 -behaviour(supervisor).
 
 
+-author("Feng Lee <feng@emqtt.io>").
+
 -include("emqttd.hrl").
 -include("emqttd.hrl").
 
 
 %% API
 %% API
@@ -50,5 +51,5 @@ start_child(Mod, Type) when is_atom(Mod) and is_atom(Type) ->
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
 
 
 init([]) ->
 init([]) ->
-    {ok, {{one_for_all, 10, 3600}, []}}.
+    {ok, {{one_for_all, 0, 1}, []}}.