mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-22 17:27:18 +00:00
use :discard instead of cancel
This commit is contained in:
parent
ceeeefc707
commit
d3b9cfb03f
|
@ -12,8 +12,8 @@ defmodule Pleroma.Workers.ReceiverWorker do
|
|||
with {:ok, res} <- Federator.perform(:incoming_ap_doc, params) do
|
||||
{:ok, res}
|
||||
else
|
||||
{:error, :origin_containment_failed} -> {:cancel, :origin_containment_failed}
|
||||
{:error, {:reject, reason}} -> {:cancel, reason}
|
||||
{:error, :origin_containment_failed} -> {:discard, :origin_containment_failed}
|
||||
{:error, {:reject, reason}} -> {:discard, reason}
|
||||
e -> e
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue