summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-02-22 14:07:46 -0500
committerMark Felder <feld@feld.me>2024-02-22 14:07:46 -0500
commitac55764599c054a03299470d92fd0d274509a024 (patch)
tree0ec3b608da2b3dc8ca3fb6c2a3e24981f8970434
parentf0468697cd74f4ec062f9c6feda53cfbe9e4500c (diff)
Gun Connection Pool was not attempting to free a connection and retry once if the pool was full.
-rw-r--r--lib/pleroma/gun/connection_pool/worker_supervisor.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/gun/connection_pool/worker_supervisor.ex b/lib/pleroma/gun/connection_pool/worker_supervisor.ex
index 24ad61117..edaffcc25 100644
--- 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} ->
- funs = [fn -> !retry end, fn -> match?(:error, free_pool()) end]
+ funs = [fn -> retry end, fn -> match?(:error, free_pool()) end]
if Enum.any?(funs, fn fun -> fun.() end) do
:telemetry.execute([:pleroma, :connection_pool, :provision_failure], %{opts: opts})