aboutsummaryrefslogtreecommitdiff
path: root/lib/octonetcat/supervisor.ex
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2017-11-24 10:16:06 -0700
committerkballou <kballou@devnulllabs.io>2017-11-24 10:22:44 -0700
commit9bae951c555f9c25876968fa98853253b7007a0f (patch)
tree9bdae36c1344d5c9d4d667bb218b729340d0ed90 /lib/octonetcat/supervisor.ex
parent3af086d168975a4122cee80c955da03516f55571 (diff)
downloadoctonetcat-9bae951c555f9c25876968fa98853253b7007a0f.tar.gz
octonetcat-9bae951c555f9c25876968fa98853253b7007a0f.tar.xz
Level up the Echo Server0.3.0
This should enable the upgrade process to retain connections - Replace our simple task supervisor with a custom `simple_one_for_one` supervisor - Upgrade the echo server to use a `GenServer` behaviour
Diffstat (limited to 'lib/octonetcat/supervisor.ex')
-rw-r--r--lib/octonetcat/supervisor.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/octonetcat/supervisor.ex b/lib/octonetcat/supervisor.ex
index 50a5f66..64bc27c 100644
--- a/lib/octonetcat/supervisor.ex
+++ b/lib/octonetcat/supervisor.ex
@@ -11,7 +11,7 @@ defmodule Octonetcat.Supervisor do
def init(_) do
children = [
- supervisor(Task.Supervisor, [[name: Octonetcat.TaskSupervisor]]),
+ supervisor(Octonetcat.ServerSupervisor, []),
worker(Task, [Octonetcat.Accepter, :accept, []])
]