diff options
author | kballou <kballou@devnulllabs.io> | 2017-11-24 10:16:06 -0700 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2017-11-24 10:22:44 -0700 |
commit | 9bae951c555f9c25876968fa98853253b7007a0f (patch) | |
tree | 9bdae36c1344d5c9d4d667bb218b729340d0ed90 /lib/octonetcat/supervisor.ex | |
parent | 3af086d168975a4122cee80c955da03516f55571 (diff) | |
download | octonetcat-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.ex | 2 |
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, []]) ] |