From 6a2254d98dc65b5344ff2205df67ebf5f7a8474f Mon Sep 17 00:00:00 2001 From: Alexander Strizhakov Date: Tue, 21 Jul 2020 11:26:10 +0300 Subject: start gun pool in mix tasks --- lib/mix/pleroma.ex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex index 4cf327721..938344c7d 100644 --- a/lib/mix/pleroma.ex +++ b/lib/mix/pleroma.ex @@ -45,6 +45,13 @@ defmodule Mix.Pleroma do ] ++ http_children(adapter) + children = + if Application.get_env(:tesla, :adapter) == Tesla.Adapter.Gun do + [Pleroma.Application.GunSupervisor | children] + else + children + end + cachex_children = Enum.map(@cachex_children, &Pleroma.Application.Static.build_cachex({&1, []})) -- cgit v1.2.3