diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2021-03-14 18:00:10 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2021-03-15 16:24:19 +0300 |
commit | 90a2b506730dcec491f03d13c2561b7a9d36fc29 (patch) | |
tree | e116ae11002310ba37c7f48e30405218c41f4f39 | |
parent | 12e32e976f2c2fbd47565be9a4ac6d7356081c37 (diff) | |
download | pleroma-90a2b506730dcec491f03d13c2561b7a9d36fc29.tar.gz |
start PubSub with chat
-rw-r--r-- | lib/pleroma/application/start_up_dependencies.ex | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/pleroma/application/start_up_dependencies.ex b/lib/pleroma/application/start_up_dependencies.ex index 3eadc56c0..81468d5d3 100644 --- a/lib/pleroma/application/start_up_dependencies.ex +++ b/lib/pleroma/application/start_up_dependencies.ex @@ -75,7 +75,6 @@ defmodule Pleroma.Application.StartUpDependencies do ] |> add_cachex_deps() |> maybe_add_init_internal_fetch_actor_task(env) - |> maybe_add_pub_sub() |> maybe_add_backgroud_migrator() |> start_while(fun) end @@ -179,15 +178,10 @@ defmodule Pleroma.Application.StartUpDependencies do defp maybe_add_chat_child(children) do if Config.get([:chat, :enabled]) do - [Pleroma.Web.ChatChannel.ChatChannelState | children] - else - children - end - end - - defp maybe_add_pub_sub(children) do - if Config.get([:chat, :enabled]) do - [{Phoenix.PubSub, [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]} | children] + [ + Pleroma.Web.ChatChannel.ChatChannelState, + {Phoenix.PubSub, [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]} | children + ] else children end |