diff options
author | David Baker <dave@matrix.org> | 2016-01-21 19:17:32 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-21 19:17:32 +0000 |
commit | 330be18ec5db6e903ac4d5fe97b3e3940fea2a5b (patch) | |
tree | 03fa40c3bcfc98e82c0b60cd1c3e92159e80795e /synapse/util/caches | |
parent | Change LRUCache to be tree-based so we can delete subtrees. (diff) | |
download | synapse-330be18ec5db6e903ac4d5fe97b3e3940fea2a5b.tar.xz |
peppate
Diffstat (limited to 'synapse/util/caches')
-rw-r--r-- | synapse/util/caches/treecache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/util/caches/treecache.py b/synapse/util/caches/treecache.py index 1e5f87e6ad..6faf2cf75f 100644 --- a/synapse/util/caches/treecache.py +++ b/synapse/util/caches/treecache.py @@ -43,10 +43,10 @@ class TreeCache(object): node_and_keys.append((self.root, None)) for i in range(len(node_and_keys) - 1): - n,k = node_and_keys[i] + n, k = node_and_keys[i] if n: break node_and_keys[i+1][0].pop(k) - return popped \ No newline at end of file + return popped |