removing try block in getting gun info

This commit is contained in:
Alexander Strizhakov 2020-03-05 09:51:52 +03:00
parent b34bc669b9
commit eb324467d9
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
1 changed files with 7 additions and 12 deletions

View File

@ -285,8 +285,6 @@ defmodule Pleroma.Pool.Connections do
end
defp compose_key_gun_info(pid) do
try do
# sometimes :gun.info can raise MatchError, which lead to pool terminate
%{origin_host: origin_host, origin_scheme: scheme, origin_port: port} = Gun.info(pid)
host =
@ -296,9 +294,6 @@ defmodule Pleroma.Pool.Connections do
end
"#{scheme}:#{host}:#{port}"
rescue
_ -> :error_gun_info
end
end
defp find_conn(conns, conn_pid) do