don't fully start pleroma in mix tasks

This commit is contained in:
Alexander Strizhakov 2020-07-03 19:18:08 +03:00
commit 72ad3a66f4
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
5 changed files with 27 additions and 2 deletions

View file

@ -162,7 +162,8 @@ defmodule Pleroma.Application do
defp seconds_valid_interval,
do: :timer.seconds(Config.get!([Pleroma.Captcha, :seconds_valid]))
defp build_cachex(type, opts),
@spec build_cachex(String.t(), keyword()) :: map()
def build_cachex(type, opts),
do: %{
id: String.to_atom("cachex_" <> type),
start: {Cachex, :start_link, [String.to_atom(type <> "_cache"), opts]},