diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-07-21 11:26:10 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-09-24 10:12:04 +0300 |
commit | 6a2254d98dc65b5344ff2205df67ebf5f7a8474f (patch) | |
tree | c4cd782d8457115f889b676c43f2eead2c78cb08 | |
parent | 10f74f233f15899f70f3ca2f4a6a21ec460669af (diff) | |
download | pleroma-6a2254d98dc65b5344ff2205df67ebf5f7a8474f.tar.gz |
start gun pool in mix tasks
-rw-r--r-- | lib/mix/pleroma.ex | 7 |
1 files changed, 7 insertions, 0 deletions
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, []})) |