mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 02:12:41 +00:00
rename var
This commit is contained in:
parent
5b83e0df39
commit
c155eefe19
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ class PaginationHandler:
|
||||||
CLEAR_PURGE_AFTER_MS = 1000 * 3600 * 24 # 24 hours
|
CLEAR_PURGE_AFTER_MS = 1000 * 3600 * 24 # 24 hours
|
||||||
|
|
||||||
# how often to run the purge rooms loop
|
# how often to run the purge rooms loop
|
||||||
PURGE_ROOMS_PERIOD = 1000 * 3600 # 1 hour
|
PURGE_ROOMS_INTERVAL_MS = 1000 * 3600 # 1 hour
|
||||||
|
|
||||||
def __init__(self, hs: "HomeServer"):
|
def __init__(self, hs: "HomeServer"):
|
||||||
self.hs = hs
|
self.hs = hs
|
||||||
|
@ -139,7 +139,7 @@ class PaginationHandler:
|
||||||
if self._is_master:
|
if self._is_master:
|
||||||
self.clock.looping_call(
|
self.clock.looping_call(
|
||||||
run_as_background_process,
|
run_as_background_process,
|
||||||
PaginationHandler.PURGE_ROOMS_PERIOD,
|
PaginationHandler.PURGE_ROOMS_INTERVAL_MS,
|
||||||
"purge_rooms",
|
"purge_rooms",
|
||||||
self.purge_rooms,
|
self.purge_rooms,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue