projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae0e6d8
)
Only try refreshing every 6 hours.
author
Roger Braun
<roger@rogerbraun.net>
Wed, 10 May 2017 17:08:42 +0000
(19:08 +0200)
committer
Roger Braun
<roger@rogerbraun.net>
Wed, 10 May 2017 17:08:42 +0000
(19:08 +0200)
lib/pleroma/web/federator/federator.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/federator/federator.ex
b/lib/pleroma/web/federator/federator.ex
index fbf6ea6bec95a10258e827d0907a731e05b2d08e..3e99f0d5d04ce6bcb636e2347e26076400aab051 100644
(file)
--- 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) # 1
0 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 minute
s
+ Process.sleep(1000 * 60 * 60
* 6) # 6 hour
s
enqueue(:refresh_subscriptions, nil)
end)
end