FedSockets: fix log spam on cached rejects
authorrinpatch <rinpatch@sdf.org>
Fri, 18 Sep 2020 13:09:37 +0000 (16:09 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 18 Sep 2020 13:09:37 +0000 (16:09 +0300)
lib/pleroma/web/fed_sockets/fed_sockets.ex

index 035d54796eb87fbf06f331bac94731a680bcd2d8..1fd5899c802317b89b388a1615a00fdc527d8b8f 100644 (file)
@@ -104,6 +104,9 @@ defmodule Pleroma.Web.FedSockets 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)