commit: 9ef021e2dae1a0bc07e997489304875b0d45ec07
parent c765fcbe7e907dd5ac1f8b559bf65ab477dfe0f0
Author: Mark Felder <feld@feld.me>
Date: Thu, 20 Jun 2024 14:17:28 -0400
Switch the reclaimer to GenServer.start so it is not linked
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pleroma/gun/connection_pool/reclaimer.ex b/lib/pleroma/gun/connection_pool/reclaimer.ex
@@ -9,7 +9,7 @@ defmodule Pleroma.Gun.ConnectionPool.Reclaimer do
def start_monitor do
pid =
- case GenServer.start_link(__MODULE__, [], name: {:via, Registry, {registry(), "reclaimer"}}) do
+ case GenServer.start(__MODULE__, [], name: {:via, Registry, {registry(), "reclaimer"}}) do
{:ok, pid} ->
pid
diff --git a/lib/pleroma/gun/connection_pool/worker_supervisor.ex b/lib/pleroma/gun/connection_pool/worker_supervisor.ex
@@ -37,7 +37,7 @@ defmodule Pleroma.Gun.ConnectionPool.WorkerSupervisor do
def start_worker(opts, false) do
case DynamicSupervisor.start_child(__MODULE__, {Worker, opts}) do
{:error, :max_children} ->
- spawn(fn -> free_pool() end)
+ free_pool()
start_worker(opts, true)
res ->