Application, dependencies: prepare for finch
This commit is contained in:
parent
fb0aa0661c
commit
abb62dd886
3 changed files with 12 additions and 6 deletions
|
|
@ -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] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue