diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-29 19:17:25 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-29 19:17:25 +0100 |
commit | 0ade2712d13236e557f94172c102e03545d8ac09 (patch) | |
tree | 2bc8823466f788be2333ce124d816bab1c328b9a /synapse/storage | |
parent | Also remove yield from within lock in the other generator (diff) | |
download | synapse-0ade2712d13236e557f94172c102e03545d8ac09.tar.xz |
Typo
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/util/id_generators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/util/id_generators.py b/synapse/storage/util/id_generators.py index a51268511c..e40eb8a8c4 100644 --- a/synapse/storage/util/id_generators.py +++ b/synapse/storage/util/id_generators.py @@ -85,7 +85,7 @@ class StreamIdGenerator(object): # ... persist event ... """ if not self._current_max: - self._compute_current_max(txn) + self._get_or_compute_current_max(txn) with self._lock: self._current_max += 1 |