diff options
Diffstat (limited to 'shardweb')
4 files changed, 4 insertions, 4 deletions
diff --git a/shardweb/lib/shard_web/controllers/page_controller.ex b/shardweb/lib/shard_web/controllers/page_controller.ex index 620d779..261b5d6 100644 --- a/shardweb/lib/shard_web/controllers/page_controller.ex +++ b/shardweb/lib/shard_web/controllers/page_controller.ex @@ -18,7 +18,7 @@ defmodule ShardWeb.PageController do end end {port_num, _} = Integer.parse port - Shard.Manager.add_peer({:inet, ip_tuple, port_num}) + SNet.Manager.add_peer({:inet, ip_tuple, port_num}) rescue _ -> nil end diff --git a/shardweb/lib/shard_web/templates/identity/view.html.eex b/shardweb/lib/shard_web/templates/identity/view.html.eex index b9210f2..7252f7c 100644 --- a/shardweb/lib/shard_web/templates/identity/view.html.eex +++ b/shardweb/lib/shard_web/templates/identity/view.html.eex @@ -35,6 +35,6 @@ <% end %> </ul> -<%= form_for @conn, identity_path(@conn, :create), [class: "form-inline"], fn f -> %> +<%= form_for @conn, identity_path(@conn, :create), [class: "form-inline"], fn _f -> %> <%= submit "Create new identity", [class: "btn btn-danger"] %> <% end %> diff --git a/shardweb/lib/shard_web/templates/page/index.html.eex b/shardweb/lib/shard_web/templates/page/index.html.eex index 34441e5..44a8aa0 100644 --- a/shardweb/lib/shard_web/templates/page/index.html.eex +++ b/shardweb/lib/shard_web/templates/page/index.html.eex @@ -6,7 +6,7 @@ <th>Address</th> <th>Port</th> </tr> - <%= for {{:inet, ip, port}, pid, auth} <- conn_list() do %> + <%= for {{:inet, ip, port}, _pid, auth} <- conn_list() do %> <tr> <td> <%= case auth do %> diff --git a/shardweb/lib/shard_web/views/page_view.ex b/shardweb/lib/shard_web/views/page_view.ex index 99df99d..6bd8e4b 100644 --- a/shardweb/lib/shard_web/views/page_view.ex +++ b/shardweb/lib/shard_web/views/page_view.ex @@ -2,7 +2,7 @@ defmodule ShardWeb.PageView do use ShardWeb, :view def conn_list do - Shard.Manager.list_connections + SNet.Manager.list_connections end def peer_id_to_str(id) do |