projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875b665
)
FedSockets: fix log spam on cached rejects
author
rinpatch
<rinpatch@sdf.org>
Fri, 18 Sep 2020 13:09:37 +0000
(16:09 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Fri, 18 Sep 2020 13:09:37 +0000
(16:09 +0300)
lib/pleroma/web/fed_sockets/fed_sockets.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/fed_sockets/fed_sockets.ex
b/lib/pleroma/web/fed_sockets/fed_sockets.ex
index 035d54796eb87fbf06f331bac94731a680bcd2d8..1fd5899c802317b89b388a1615a00fdc527d8b8f 100644
(file)
--- a/
lib/pleroma/web/fed_sockets/fed_sockets.ex
+++ b/
lib/pleroma/web/fed_sockets/fed_sockets.ex
@@
-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)