summaryrefslogtreecommitdiff
path: root/src/mem3/src/mem3_reshard_job_sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem3/src/mem3_reshard_job_sup.erl')
-rw-r--r--src/mem3/src/mem3_reshard_job_sup.erl15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mem3/src/mem3_reshard_job_sup.erl b/src/mem3/src/mem3_reshard_job_sup.erl
index 3f1b3bfb4..e98cb5a08 100644
--- a/src/mem3/src/mem3_reshard_job_sup.erl
+++ b/src/mem3/src/mem3_reshard_job_sup.erl
@@ -22,34 +22,25 @@
init/1
]).
-
-include("mem3_reshard.hrl").
-
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
-
start_child(Job) ->
supervisor:start_child(?MODULE, [Job]).
-
terminate_child(Pid) ->
supervisor:terminate_child(?MODULE, Pid).
-
count_children() ->
Props = supervisor:count_children(?MODULE),
proplists:get_value(active, Props).
-
init(_Args) ->
Children = [
- {mem3_reshard_job,
- {mem3_reshard_job, start_link, []},
- temporary,
- 60000,
- worker,
- [mem3_reshard_job]}
+ {mem3_reshard_job, {mem3_reshard_job, start_link, []}, temporary, 60000, worker, [
+ mem3_reshard_job
+ ]}
],
{ok, {{simple_one_for_one, 10, 3}, Children}}.