From 3b5223585e1eee38420ec1614e33e34b30d6b05a Mon Sep 17 00:00:00 2001 From: 5HT Date: Tue, 3 Sep 2024 23:56:34 +0300 Subject: [PATCH] update --- config/config.exs | 2 +- lib/index.ex | 2 +- lib/login.ex | 2 +- mix.exs | 9 ++++----- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/config/config.exs b/config/config.exs index d76c4ae..d2bf6e6 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :n2o, port: 8002, diff --git a/lib/index.ex b/lib/index.ex index 3845d5c..e9c5d1a 100644 --- a/lib/index.ex +++ b/lib/index.ex @@ -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() diff --git a/lib/login.ex b/lib/login.ex index fc97511..45af81e 100644 --- a/lib/login.ex +++ b/lib/login.ex @@ -19,6 +19,6 @@ defmodule Sample.Login do def event(unexpected) do unexpected |> inspect() - |> Logger.warn() + |> Logger.warning() end end diff --git a/mix.exs b/mix.exs index b2f3f23..f95bf30 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,6 @@ defmodule Sample.Mixfile do version: "6.6.7", description: "SAMPLE Elixir Application", package: package(), - elixir: "~> 1.7", deps: deps() ] end @@ -26,7 +25,7 @@ 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 @@ -34,10 +33,10 @@ defmodule Sample.Mixfile 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