commit: 12a3021d982dfa38eb1c1436484023dca614e737
parent e3c9256f4633a4f29d67959347a3ebeabcc7b665
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 22 Feb 2024 01:00:30 +0100
Revert "Pleroma.Gun.ConnectionPool.WorkerSupervisor: fix dialyzer error"
This reverts commit 6ce7011a2e07d9e8e7d7fdc1a6fe340bac6e1404.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/gun/connection_pool/worker_supervisor.ex b/lib/pleroma/gun/connection_pool/worker_supervisor.ex
@@ -21,7 +21,7 @@ defmodule Pleroma.Gun.ConnectionPool.WorkerSupervisor do
def start_worker(opts, retry \\ false) do
case DynamicSupervisor.start_child(__MODULE__, {Pleroma.Gun.ConnectionPool.Worker, opts}) do
{:error, :max_children} ->
- if Enum.any?([retry, free_pool()], &match?(&1, :error)) do
+ if retry or free_pool() == :error do
:telemetry.execute([:pleroma, :connection_pool, :provision_failure], %{opts: opts})
{:error, :pool_full}
else