summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-20 17:28:33 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-20 17:47:45 +0000
commitb1022ed8b5df2d9827cf0437574fce4154eb606e (patch)
treeab16f95596cd41070bf5c8fc21e720a60965310d /synapse/storage/_base.py
parentMerge pull request #113 from matrix-org/store_rearrangement (diff)
downloadsynapse-b1022ed8b5df2d9827cf0437574fce4154eb606e.tar.xz
func(*EXPR) is valid Python syntax, really...
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index e53630a689..2552a74f85 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -100,8 +100,7 @@ def cached(max_entries=1000, num_args=1):
             cache_counter.inc_misses(name)
             ret = yield orig(self, *keyargs)
 
-            prefill_args = keyargs + (ret,)
-            prefill(*prefill_args)
+            prefill(*keyargs + (ret,))
 
             defer.returnValue(ret)