Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Sep 3, 2024
1 parent ce253ce commit 3b52235
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Mix.Config
import Config

config :n2o,
port: 8002,
Expand Down
2 changes: 1 addition & 1 deletion lib/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule Sample.Index do
:nitro.wire(NITRO.jq(target: :message, method: [:focus, :select]))
:nitro.insert_top(:history, NITRO.message(body: [NITRO.author(body: user), :nitro.jse(message)]))
end
def event(unexpected), do: unexpected |> inspect() |> Logger.warn()
def event(unexpected), do: unexpected |> inspect() |> Logger.warning()

def chat(message) do
room = Sample.Application.room ; user = :n2o.user()
Expand Down
2 changes: 1 addition & 1 deletion lib/login.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ defmodule Sample.Login do
def event(unexpected) do
unexpected
|> inspect()
|> Logger.warn()
|> Logger.warning()
end
end
9 changes: 4 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ defmodule Sample.Mixfile do
version: "6.6.7",
description: "SAMPLE Elixir Application",
package: package(),
elixir: "~> 1.7",
deps: deps()
]
end
Expand All @@ -26,18 +25,18 @@ defmodule Sample.Mixfile do
def application() do
[
mod: {Sample.Application, []},
applications: [:ranch, :cowboy, :rocksdb, :logger, :n2o, :kvs, :syn, :nitro]
extra_applications: [:ranch, :mnesia, :xmerl, :cowboy, :rocksdb, :logger, :n2o, :kvs, :syn, :nitro]
]
end

def deps() do
[
{:ex_doc, "~> 0.29.0", only: :dev},
{:cowboy, "~> 2.8.0"},
{:rocksdb, "~> 1.6.0"},
{:rocksdb, git: "https://github.com/emqx/erlang-rocksdb", branch: "master"},
{:nitro, "~> 8.2.4"},
{:kvs, "~> 10.3.0"},
{:n2o, "~> 10.3.2"},
{:kvs, "~> 10.8.3"},
{:n2o, "~> 10.12.4"},
{:syn, "~> 2.1.1"}
]
end
Expand Down

0 comments on commit 3b52235

Please sign in to comment.