diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-15 12:18:05 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-15 12:18:05 +0200 |
commit | 8c49dd71d29359447c24b1cd4f48a8faf0c4fdca (patch) | |
tree | e2d8b61139d6b72e6abfda6277918f54fdae36ef /shard/lib/application.ex | |
parent | 7a9678843647de930885792149b279ef105f67b6 (diff) | |
download | shard-8c49dd71d29359447c24b1cd4f48a8faf0c4fdca.tar.gz shard-8c49dd71d29359447c24b1cd4f48a8faf0c4fdca.zip |
Refactor shard starting/stopping
Diffstat (limited to 'shard/lib/application.ex')
-rw-r--r-- | shard/lib/application.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shard/lib/application.ex b/shard/lib/application.ex index 2017041..de9c998 100644 --- a/shard/lib/application.ex +++ b/shard/lib/application.ex @@ -13,8 +13,6 @@ defmodule Shard.Application do # Define workers and child supervisors to be supervised children = [ - { DynamicSupervisor, strategy: :one_for_one, name: Shard.DynamicSupervisor }, - # Networking SNet.Addr, SNet.Manager, @@ -25,8 +23,10 @@ defmodule Shard.Application do # Keys & identities Shard.Keys, + + # Initialize user data { Task, fn -> - Shard.Manifest.start %SApp.Chat.Manifest{channel: "lobby"} + Shard.Manager.find_or_start %SApp.Chat.Manifest{channel: "lobby"} Shard.Keys.get_any_identity end }, ] |