From: Roger Braun Date: Wed, 10 May 2017 17:08:42 +0000 (+0200) Subject: Only try refreshing every 6 hours. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d2c4a427f17037f4565de7fd1a14681136cec561;p=akkoma Only try refreshing every 6 hours. --- diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index fbf6ea6be..3e99f0d5d 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -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 @@ defmodule Pleroma.Web.Federator 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