Merge branch 'optional-retry-queue' into 'develop'

Make retry queue optional.

See merge request pleroma/pleroma!498
This commit is contained in:
kaniini 2018-12-04 19:00:18 +00:00
commit ec1ec32f20

View file

@ -17,7 +17,15 @@ def init(args) do
end
def start_link() do
enabled = Pleroma.Config.get([:retry_queue, :enabled], false)
if enabled do
Logger.info("Starting retry queue")
GenServer.start_link(__MODULE__, %{delivered: 0, dropped: 0}, name: __MODULE__)
else
Logger.info("Retry queue disabled")
:ignore
end
end
def enqueue(data, transport, retries \\ 0) do