Browse Source

naming

debug-remote-ip
Alexander Strizhakov 4 years ago
parent
commit
7d68924e4f
No known key found for this signature in database GPG Key ID: 22896A53AEF1381
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/pleroma/gun/conn.ex

+ 2
- 2
lib/pleroma/gun/conn.ex View File

@@ -54,7 +54,7 @@ defmodule Pleroma.Gun.Conn do
if Connections.count(name) < opts[:max_connection] do
do_open(uri, opts)
else
try_do_open(name, uri, opts)
close_least_used_and_do_open(name, uri, opts)
end

if is_pid(conn_pid) do
@@ -159,7 +159,7 @@ defmodule Pleroma.Gun.Conn do

defp add_http2_opts(opts, _, _), do: opts

defp try_do_open(name, uri, opts) do
defp close_least_used_and_do_open(name, uri, opts) do
Logger.debug("try to open conn #{Connections.compose_uri_log(uri)}")

with [{close_key, least_used} | _conns] <-


Loading…
Cancel
Save