aboutsummaryrefslogtreecommitdiff
path: root/shard/lib/application.ex
diff options
context:
space:
mode:
Diffstat (limited to 'shard/lib/application.ex')
-rw-r--r--shard/lib/application.ex6
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 },
]