Bot main process added to supervision tree.
authorStanislaw Klekot <dozzie@jarowit.net>
Mon, 25 Aug 2014 21:25:38 +0000 (23:25 +0200)
committerStanislaw Klekot <dozzie@jarowit.net>
Mon, 25 Aug 2014 21:25:38 +0000 (23:25 +0200)
src/haircut_sup.erl

index f39179f..b36fce1 100644 (file)
@@ -27,7 +27,10 @@ init([] = _Args) ->
   Children = [
     {haircut_commander,
       {haircut_commander, start_link, []},
-      permanent, 5000, worker, [haircut_commander]}
+      permanent, 5000, worker, [haircut_commander]},
+    {haircut_bot,
+      {haircut_bot, start_link, []},
+      permanent, 5000, worker, [haircut_bot]}
   ],
   {ok, {
     {one_for_one, 5, 10},