From d2c4a427f17037f4565de7fd1a14681136cec561 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 10 May 2017 19:08:42 +0200 Subject: [PATCH] Only try refreshing every 6 hours. --- lib/pleroma/web/federator/federator.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ 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