|
|
@ -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, []). |
|
|
|