summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-04-04 16:13:40 +0100
committerRichard van der Hoff <richard@matrix.org>2018-04-04 16:13:40 +0100
commit2fb6d460424bc822aa80843d60a07cea3a56f8bc (patch)
tree743a6642d6ba27c6a7cf19e9b1b36cfd5c2e9b1a
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
downloadsynapse-2fb6d460424bc822aa80843d60a07cea3a56f8bc.tar.xz
fix PEP8
-rw-r--r--synapse/handlers/sync.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index e40e19781c..37fae43f71 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -30,6 +30,7 @@ import itertools
 
 logger = logging.getLogger(__name__)
 
+SYNC_RESPONSE_CACHE_MS = 2 * 60 * 1000
 
 SyncConfig = collections.namedtuple("SyncConfig", [
     "user",
@@ -169,7 +170,9 @@ class SyncHandler(object):
         self.presence_handler = hs.get_presence_handler()
         self.event_sources = hs.get_event_sources()
         self.clock = hs.get_clock()
-        self.response_cache = ResponseCache(hs, timeout_ms=2*60*1000)
+        self.response_cache = ResponseCache(
+            hs, timeout_ms=SYNC_RESPONSE_CACHE_MS,
+        )
         self.state = hs.get_state_handler()
 
     def wait_for_sync_for_user(self, sync_config, since_token=None, timeout=0,