Skip to content
Snippets Groups Projects
Commit d2c4a427 authored by lain's avatar lain
Browse files

Only try refreshing every 6 hours.

parent ae0e6d80
Branches
Tags
No related merge requests found
......@@ -10,7 +10,7 @@ defmodule Pleroma.Web.Federator do
def start_link do
spawn(fn ->
Process.sleep(1000 * 60 * 1) # 10 minutes
Process.sleep(1000 * 60 * 1) # 1 minute
enqueue(:refresh_subscriptions, nil)
end)
GenServer.start_link(__MODULE__, {:sets.new(), :queue.new()}, name: __MODULE__)
......@@ -20,7 +20,7 @@ def handle(:refresh_subscriptions, _) do
Logger.debug("Federator running refresh subscriptions")
Websub.refresh_subscriptions()
spawn(fn ->
Process.sleep(1000 * 60 * 60) # 60 minutes
Process.sleep(1000 * 60 * 60 * 6) # 6 hours
enqueue(:refresh_subscriptions, nil)
end)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment