Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Jun 8, 2024
1 parent 5abfb96 commit bdf14f6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 151 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ DB_SSL=off
DB_CA_CERTFILE_PATH=

MIX_ENV=prod

EXPOSE_PROMETHEUS_METRICS=false
7 changes: 0 additions & 7 deletions lib/lynx/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ defmodule Lynx.Application do
# {Lynx.Workers, %{}}
]

children =
if (System.get_env("EXPOSE_PROMETHEUS_METRICS") || "false") == "true" do
children ++ [Lynx.PromEx]
else
children
end

# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: Lynx.Supervisor]
Expand Down
102 changes: 0 additions & 102 deletions lib/lynx/prom_ex.ex

This file was deleted.

4 changes: 0 additions & 4 deletions lib/lynx_web/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ defmodule LynxWeb.Endpoint do

plug Plug.RequestId

if (System.get_env("EXPOSE_PROMETHEUS_METRICS") || "false") == "true" do
plug PromEx.Plug, prom_ex_module: Lynx.PromEx
end

plug Plug.Telemetry, event_prefix: [:phoenix, :endpoint]

plug Plug.Parsers,
Expand Down
3 changes: 1 addition & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ defmodule Lynx.MixProject do
{:gettext, "~> 0.22"},
{:jason, "~> 1.4"},
{:plug_cowboy, "~> 2.5"},
{:bcrypt_elixir, "~> 3.0"},
{:prom_ex, "~> 1.9.0"}
{:bcrypt_elixir, "~> 3.0"}
]
end

Expand Down
23 changes: 7 additions & 16 deletions mix.lock

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions test/lynx_web/views/error_view_test.exs

This file was deleted.

0 comments on commit bdf14f6

Please sign in to comment.