summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-17 17:24:51 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-17 17:24:51 +0000
commit93978c5e2beb22b097061e58182777e9c2257228 (patch)
tree7abf35f400a4f83f3534f22213641fc6c228b963 /synapse/api/auth.py
parentBe polite and ensure we use @functools.wraps() when creating a function decor... (diff)
downloadsynapse-93978c5e2beb22b097061e58182777e9c2257228.tar.xz
@cached() annotate get_user_by_token() - achieves a minor DB performance improvement
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r--synapse/api/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 90f9eb6847..64f605b962 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -388,7 +388,7 @@ class Auth(object):
             AuthError if no user by that token exists or the token is invalid.
         """
         try:
-            ret = yield self.store.get_user_by_token(token=token)
+            ret = yield self.store.get_user_by_token(token)
             if not ret:
                 raise StoreError(400, "Unknown token")
             user_info = {