summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-06-23 15:38:45 +0300
committerrinpatch <rinpatch@sdf.org>2020-07-15 15:26:35 +0300
commit007843b75e0c7087dad1ef932224b21327d81793 (patch)
tree3c39106d962359c0fb6553335b99c325df13291b /lib
parent7882f28569bfaee2996d059990eec279415f0785 (diff)
downloadpleroma-007843b75e0c7087dad1ef932224b21327d81793.tar.gz
pleroma-007843b75e0c7087dad1ef932224b21327d81793.zip
Add documentation for new connection pool settings and remove some
`:retry_timeout` and `:retry` got removed because reconnecting on failure is something the new pool intentionally doesn't do. `:max_overflow` had to go in favor of `:max_waiting`, I didn't reuse the key because the settings are very different in their behaviour. `:checkin_timeout` got removed in favor of `:connection_acquisition_wait`, I didn't reuse the key because the settings are somewhat different. I didn't do any migrations/deprecation warnings/changelog entries because these settings were never in stable.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/gun/conn.ex2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/pleroma/gun/conn.ex b/lib/pleroma/gun/conn.ex
index 77f78c7ff..9dc8880db 100644
--- a/lib/pleroma/gun/conn.ex
+++ b/lib/pleroma/gun/conn.ex
@@ -13,8 +13,6 @@ defmodule Pleroma.Gun.Conn do
opts =
opts
|> Enum.into(%{})
- |> Map.put_new(:retry, pool_opts[:retry] || 1)
- |> Map.put_new(:retry_timeout, pool_opts[:retry_timeout] || 1000)
|> Map.put_new(:await_up_timeout, pool_opts[:await_up_timeout] || 5_000)
|> Map.put_new(:supervise, false)
|> maybe_add_tls_opts(uri)