Merge branch 'mix-tasks-improvement' into 'develop'

Mix tasks improvement

See merge request pleroma/pleroma!2723
This commit is contained in:
lain 2020-07-10 08:58:44 +00:00
commit 48f98a2748
5 changed files with 42 additions and 8 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]},