Mogrify/Mogrifun: Asyncify

This commit is contained in:
Lain Soykaf 2025-02-25 17:08:21 +04:00
commit c31fabdebd
9 changed files with 90 additions and 40 deletions

View file

@ -34,7 +34,13 @@ defmodule Pleroma.Test.StaticConfig do
@behaviour Pleroma.Config.Getting
@config Application.get_all_env(:pleroma)
@impl true
def get(path, default \\ nil) do
get_in(@config, path) || default
end
@impl true
def get!(path) do
get_in(@config, path)
end
end