diff options
author | Alex Auvolat <alex@adnab.me> | 2018-07-03 16:13:54 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-07-03 16:13:54 +0200 |
commit | 66ab427e7ada3e8d9710eb79b1f768a8431b42eb (patch) | |
tree | d5a70563113b3cb3a9c164c1bc2cf66229a80c2d /lib/application.ex | |
parent | 8f3009715ee9ccdd7ecb54fea1244a32a29b62c0 (diff) | |
download | shard-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.ex | 3 |
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] }, |