mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-23 02:29:19 +00:00
func(*EXPR) is valid Python syntax, really...
This commit is contained in:
1 parent
4848fdbf59
commit
b1022ed8b5
1 file changed
+1
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user