diff options
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 |