diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-05 16:13:26 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-05 16:13:26 +0200 |
commit | 4cdf9e77037bb531544daee5c4cbb53d8c021387 (patch) | |
tree | af6526cfde3a84602d6595bbd6f100e4c294240b /shard/lib/net | |
parent | 486344f87f1e4c9b0cc391f12ce6bbf939be06ab (diff) | |
download | shard-4cdf9e77037bb531544daee5c4cbb53d8c021387.tar.gz shard-4cdf9e77037bb531544daee5c4cbb53d8c021387.zip |
work
Diffstat (limited to 'shard/lib/net')
-rw-r--r-- | shard/lib/net/chan.ex | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shard/lib/net/chan.ex b/shard/lib/net/chan.ex index aa5c186..5aba960 100644 --- a/shard/lib/net/chan.ex +++ b/shard/lib/net/chan.ex @@ -14,7 +14,7 @@ defprotocol SNet.Chan do def handle(chan, func) end -def SNet.PeerChan do +defmodule SNet.PeerChan do @moduledoc""" Direct channel to a peer """ @@ -32,12 +32,13 @@ def SNet.PeerChan do def handle(chan, func) do # DO NOT USE THIS - assert false + raise :do_not_use_this + # assert false end end end -def SNet.FloodChan do +defmodule SNet.FloodChan do @moduledoc""" Channel that send a message to all know peers for shard (floods the network) """ @@ -61,6 +62,6 @@ def SNet.FloodChan do end end -def SNet.CipherChan do +defmodule SNet.CipherChan do # TODO end |