mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-22 10:10:23 +00:00
Assert the lock is locked
This commit is contained in:
@@ -366,6 +366,8 @@ class MultiWriterIdGenerator(AbstractStreamIdGenerator):
|
||||
|
||||
Must be called with `_lock` held.
|
||||
"""
|
||||
assert self._lock.locked()
|
||||
|
||||
self._current_position_gauge.set(
|
||||
self._return_factor * self._persisted_upto_position
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user