summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-12 16:24:38 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-12 16:24:51 +0000
commit128cf2daf76e5b05a4e577b60ea406fdbb6986bf (patch)
tree1eeda21c7b8af0d08a57f46a2ec2c81f4fe3f326 /synapse/handlers
parentOption to serve metrics from their own localhost-only TCP port instead of mux... (diff)
downloadsynapse-128cf2daf76e5b05a4e577b60ea406fdbb6986bf.tar.xz
Appease pep8
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/presence.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index c6d6aef53b..731df00648 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -136,8 +136,9 @@ class PresenceHandler(BaseHandler):
         self._user_cachemap = {}
         self._user_cachemap_latest_serial = 0
 
-        metrics.register_callback("userCachemap:size",
-            lambda: len(self._user_cachemap)
+        metrics.register_callback(
+            "userCachemap:size",
+            lambda: len(self._user_cachemap),
         )
 
     def _get_or_make_usercache(self, user):