mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 13:48:57 -05:00
Fix setting gc thresholds in the workers
This commit is contained in:
parent
f1073ad43d
commit
8c75040c25
2 changed files with 4 additions and 2 deletions
|
|
@ -43,6 +43,7 @@ from daemonize import Daemonize
|
|||
|
||||
import sys
|
||||
import logging
|
||||
import gc
|
||||
|
||||
logger = logging.getLogger("synapse.app.pusher")
|
||||
|
||||
|
|
@ -284,7 +285,7 @@ def start(config_options):
|
|||
logger.info("Running")
|
||||
change_resource_limit(config.soft_file_limit)
|
||||
if config.gc_thresholds:
|
||||
ps.set_threshold(config.gc_thresholds)
|
||||
gc.set_threshold(*config.gc_thresholds)
|
||||
reactor.run()
|
||||
|
||||
def start():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue