FedSockets: fix log spam on cached rejects

This commit is contained in:
rinpatch 2020-09-18 16:09:37 +03:00
parent 875b6654ec
commit 26c571df33

View file

@ -104,6 +104,9 @@ def get_or_create_fed_socket(address) do
Logger.debug("fedsocket found in cache - #{inspect(address)}")
{:ok, socket}
{:cache, {:error, :rejected} = e} ->
e
{:connect, {:error, _host}} ->
Logger.debug("set host rejected for - #{inspect(address)}")
FedRegistry.set_host_rejected(address)