aboutsummaryrefslogtreecommitdiff
path: root/lib/application.ex
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-07-03 16:13:54 +0200
committerAlex Auvolat <alex@adnab.me>2018-07-03 16:13:54 +0200
commit66ab427e7ada3e8d9710eb79b1f768a8431b42eb (patch)
treed5a70563113b3cb3a9c164c1bc2cf66229a80c2d /lib/application.ex
parent8f3009715ee9ccdd7ecb54fea1244a32a29b62c0 (diff)
downloadshard-66ab427e7ada3e8d9710eb79b1f768a8431b42eb.tar.gz
shard-66ab427e7ada3e8d9710eb79b1f768a8431b42eb.zip
Add connection manager (to be fully fledged peer database)
Diffstat (limited to 'lib/application.ex')
-rw-r--r--lib/application.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/application.ex b/lib/application.ex
index a199e6c..3ad9325 100644
--- a/lib/application.ex
+++ b/lib/application.ex
@@ -15,8 +15,9 @@ defmodule Shard.Application do
Shard.Identity,
# Networking
- { DynamicSupervisor, strategy: :one_for_one, name: SNet.ConnSupervisor },
+ { SNet.Manager, listen_port },
{ SNet.TCPServer, listen_port },
+ { DynamicSupervisor, strategy: :one_for_one, name: SNet.ConnSupervisor },
# Applications & data store
{ SData.MerkleList, [&SApp.Chat.msg_cmp/2, name: SApp.Chat.Log] },