summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-01-27 14:25:16 -0500
committerMark Felder <feld@feld.me>2024-01-27 14:25:16 -0500
commit5c08153fc504605ae84a8e69db49a840bf996c1e (patch)
tree4d4f92169161730196169820697ecf63288e937b
parent9f357d88c23b0170f15c7f129ed2b21b6ee5f692 (diff)
downloadpleroma-5c08153fc504605ae84a8e69db49a840bf996c1e.tar.gz
pleroma-5c08153fc504605ae84a8e69db49a840bf996c1e.zip
Pleroma.Gun.ConnectionPool.Reclaimer: dialyzer error
lib/pleroma/gun/connection_pool/reclaimer.ex:12:call The function call will not succeed. :gen_server.start(Pleroma.Gun.ConnectionPool.Reclaimer, [], [ {:name, {:via, Registry, {Pleroma.Gun.ConnectionPool, <<_::72>>}}}, ... ]) will never return since the success typing is: (atom(), any(), [ {:debug, [:log | :statistics | :trace | {_, _}]} | {:hibernate_after, timeout()} | {:spawn_opt, [:link | :monitor | {_, _}]} | {:timeout, timeout()} ]) :: :ignore | {:error, _} | {:ok, pid() | {pid(), reference()}} and the contract is (Module :: module(), Args :: term(), Options :: [start_opt()]) :: start_ret()
-rw-r--r--lib/pleroma/gun/connection_pool/reclaimer.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/gun/connection_pool/reclaimer.ex b/lib/pleroma/gun/connection_pool/reclaimer.ex
index efd5c9fb8..35e7f4b2e 100644
--- 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 :gen_server.start(__MODULE__, [], name: {:via, Registry, {registry(), "reclaimer"}}) do
+ case GenServer.start_link(__MODULE__, [], name: {:via, Registry, {registry(), "reclaimer"}}) do
{:ok, pid} ->
pid