From 4cdf9e77037bb531544daee5c4cbb53d8c021387 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 5 Oct 2018 16:13:26 +0200 Subject: work --- shard/lib/net/chan.ex | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'shard/lib/net') 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 -- cgit v1.2.3