summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-08-12 16:52:34 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-09-24 10:12:05 +0300
commit4db76032c27c975a08e16584bbc703f646e9eda9 (patch)
tree9527e357644b70f1ab1d9f51fecb855f5a01d0ed
parentdb51f15ab85e2b1e3dfcc7ed583d703a0465504d (diff)
don't start oban in mix tasks
-rw-r--r--lib/mix/pleroma.ex7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex
index 2c84f939e..7fa3d6bf6 100644
--- a/lib/mix/pleroma.ex
+++ b/lib/mix/pleroma.ex
@@ -40,15 +40,14 @@ defmodule Mix.Pleroma do
Supervisor.child_spec({Task, &Pleroma.Config.Environment.load_and_update/0},
id: :update_env
),
- Pleroma.Web.Endpoint,
- {Oban, Pleroma.Config.get(Oban)}
+ Pleroma.Web.Endpoint
]
children =
- if Application.get_env(:tesla, :adapter) == Tesla.Adapter.Gun do
+ if adapter == Tesla.Adapter.Gun do
[Pleroma.Application.GunSupervisor | children]
else
- [Pleroma.Applicaiton.HackneySupervisor | children]
+ [Pleroma.Application.HackneySupervisor | children]
end
cachex_children =