summary refs log tree commit diff
path: root/synapse/storage/databases/main/presence.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-08-25 15:10:08 +0100
committerGitHub <noreply@github.com>2020-08-25 15:10:08 +0100
commit2231dffee6788836c86e868dd29574970b13dd18 (patch)
tree0e558b50207e5b85d00e0f1eb3d90a954dd0b04c /synapse/storage/databases/main/presence.py
parentWording fixes to 'name' user admin api filter (#8163) (diff)
downloadsynapse-2231dffee6788836c86e868dd29574970b13dd18.tar.xz
Make StreamIdGen `get_next` and `get_next_mult` async (#8161)
This is mainly so that `StreamIdGenerator` and `MultiWriterIdGenerator`
will have the same interface, allowing them to be used interchangeably.
Diffstat (limited to 'synapse/storage/databases/main/presence.py')
-rw-r--r--synapse/storage/databases/main/presence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/presence.py b/synapse/storage/databases/main/presence.py

index 4e3ec02d14..c9f655dfb7 100644 --- a/synapse/storage/databases/main/presence.py +++ b/synapse/storage/databases/main/presence.py
@@ -23,7 +23,7 @@ from synapse.util.iterutils import batch_iter class PresenceStore(SQLBaseStore): async def update_presence(self, presence_states): - stream_ordering_manager = self._presence_id_gen.get_next_mult( + stream_ordering_manager = await self._presence_id_gen.get_next_mult( len(presence_states) )