Application, dependencies: prepare for finch

This commit is contained in:
Lain Soykaf 2021-12-15 13:53:09 -05:00
commit abb62dd886
3 changed files with 12 additions and 6 deletions

View file

@ -61,6 +61,10 @@ defmodule Pleroma.Application do
adapter = Application.get_env(:tesla, :adapter)
if adapter == Tesla.Adapter.Finch do
Finch.start_link(name: MyFinch)
end
if adapter == Tesla.Adapter.Gun do
if version = Pleroma.OTPVersion.version() do
[major, minor] =