diff options
author | Alex Auvolat <alex@adnab.me> | 2018-08-27 13:04:51 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-08-27 13:04:51 +0200 |
commit | 6cc81b55f2466cd7526f47da6980e3eb47041457 (patch) | |
tree | bb0d7a917ec31443ca5763f9d1386f94e86d8c89 | |
parent | c1dad415d42d0991f3c549c159d85b6146fb0768 (diff) | |
download | shard-6cc81b55f2466cd7526f47da6980e3eb47041457.tar.gz shard-6cc81b55f2466cd7526f47da6980e3eb47041457.zip |
Disable web interface
-rw-r--r-- | lib/app/chat.ex | 2 | ||||
-rw-r--r-- | lib/application.ex | 2 | ||||
-rw-r--r-- | lib/cli/cli.ex | 2 | ||||
-rw-r--r-- | lib/web/httprouter.ex_ (renamed from lib/web/httprouter.ex) | 0 | ||||
-rw-r--r-- | mix.exs | 4 |
5 files changed, 5 insertions, 5 deletions
diff --git a/lib/app/chat.ex b/lib/app/chat.ex index b93e7b3..42991ce 100644 --- a/lib/app/chat.ex +++ b/lib/app/chat.ex @@ -132,7 +132,7 @@ defmodule SApp.Chat do def handle_cast({:deferred_insert, list}, state) do new_store = ML.insert_many(state.store, list, (fn msg -> msg_callback(state.channel, msg) end)) - %{state | store: new_store} + {:noreply, %{state | store: new_store}} end defp push_messages(state, to, start, num) do diff --git a/lib/application.ex b/lib/application.ex index 5262677..f933019 100644 --- a/lib/application.ex +++ b/lib/application.ex @@ -25,7 +25,7 @@ defmodule Shard.Application do Shard.Manager, # Web UI - Plug.Adapters.Cowboy.child_spec(:http, SWeb.HTTPRouter, [], port: listen_port + 1000) + # Plug.Adapters.Cowboy.child_spec(:http, SWeb.HTTPRouter, [], port: listen_port + 1000) ] # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html diff --git a/lib/cli/cli.ex b/lib/cli/cli.ex index 3f83cb1..c281d57 100644 --- a/lib/cli/cli.ex +++ b/lib/cli/cli.ex @@ -47,7 +47,7 @@ defmodule SCLI do pid end - defp handle_command(pid, ["join", qchan]) do + defp handle_command(_pid, ["join", qchan]) do list = for {_chid, manifest, chpid} <- :ets.tab2list(:shard_db), {:chat, chan} = manifest, do: {chan, chpid} diff --git a/lib/web/httprouter.ex b/lib/web/httprouter.ex_ index 57af9f9..57af9f9 100644 --- a/lib/web/httprouter.ex +++ b/lib/web/httprouter.ex_ @@ -25,8 +25,8 @@ defmodule Shard.MixProject do [ # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}, - {:cowboy, "~> 1.1.2"}, - {:plug, "~> 1.3.4"}, + # {:cowboy, "~> 1.1.2"}, + # {:plug, "~> 1.3.4"}, {:salty, "~> 0.1.3", hex: :libsalty} ] end |