~ihabunek/harvey

172cdc9de14f94bd7117f377b7c56e07c9f86f24 — Ivan Habunek 5 months ago 19afbbc
Remove dependency on finch
3 files changed, 2 insertions(+), 7 deletions(-)

M config/prod.exs
M lib/harvey/application.ex
M mix.exs
M config/prod.exs => config/prod.exs +0 -3
@@ 13,9 13,6 @@ config :harvey, HarveyWeb.Endpoint,
  url: [host: "harvey.bezdomni.net"],
  cache_static_manifest: "priv/static/cache_manifest.json"

# Configures Swoosh API Client
config :swoosh, :api_client, Harvey.Finch

# Do not print debug messages in production
config :logger, level: :info, backends: [:console, Sentry.LoggerBackend]


M lib/harvey/application.ex => lib/harvey/application.ex +2 -3
@@ 11,13 11,12 @@ defmodule Harvey.Application do

    children =
      if minimal?,
        do: [Harvey.Repo, {Finch, name: Harvey.Finch}],
        do: [Harvey.Repo],
        else: [
          HarveyWeb.Telemetry,
          Harvey.Repo,
          Harvey.Loader,
          {Phoenix.PubSub, name: Harvey.PubSub},
          {Finch, name: Harvey.Finch},
          HarveyWeb.Endpoint
        ]



@@ 28,7 27,7 @@ defmodule Harvey.Application do
  end

  def start_minimal() do
    children = [Harvey.Repo, {Finch, name: Harvey.Finch}]
    children = [Harvey.Repo]
    opts = [strategy: :one_for_one, name: Harvey.Supervisor]
    Supervisor.start_link(children, opts)
  end

M mix.exs => mix.exs +0 -1
@@ 37,7 37,6 @@ defmodule Harvey.MixProject do
      {:dialyxir, "~> 1.0", only: [:dev], runtime: false},
      {:ecto_sql, "~> 3.6"},
      {:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
      {:finch, "~> 0.13"},
      {:floki, ">= 0.30.0"},
      {:hackney, "~> 1.8"},
      {:heroicons, "~> 0.5"},