aboutsummaryrefslogtreecommitdiff
path: root/lib/octonetcat/supervisor.ex
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2017-11-16 22:53:15 -0700
committerkballou <kballou@devnulllabs.io>2017-11-24 09:54:20 -0700
commitaef21fff8e18e33da0b08e274c0c7d216bc10241 (patch)
tree88f126162be2baf6092ca836e4bfb49b1fa4c71e /lib/octonetcat/supervisor.ex
parent263ec967e18a0dbb874f2297cbeb7b3ef042cd9a (diff)
downloadoctonetcat-45ca49f3ecf094a36f2e5fc4131a25c3ac3afb21.tar.gz
octonetcat-45ca49f3ecf094a36f2e5fc4131a25c3ac3afb21.tar.xz
Add connection accepter0.1.0
Diffstat (limited to 'lib/octonetcat/supervisor.ex')
-rw-r--r--lib/octonetcat/supervisor.ex4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/octonetcat/supervisor.ex b/lib/octonetcat/supervisor.ex
index e66b4e7..01029cd 100644
--- a/lib/octonetcat/supervisor.ex
+++ b/lib/octonetcat/supervisor.ex
@@ -10,7 +10,9 @@ defmodule Octonetcat.Supervisor do
end
def init(_) do
- children = []
+ children = [
+ worker(Task, [Octonetcat.Accepter, :accept, []])
+ ]
opts = [strategy: :one_for_one]
supervise(children, opts)