diff options
author | Erik Johnston <erik@matrix.org> | 2020-09-29 21:48:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 21:48:33 +0100 |
commit | ea70f1c362dc4bd6c0f8a67e16ed0971fe095e5b (patch) | |
tree | 83a37ad1ffa3e1432dc4ca281a0cfec5ed600445 /synapse/events | |
parent | Update description of server_name config option (#8415) (diff) | |
download | synapse-ea70f1c362dc4bd6c0f8a67e16ed0971fe095e5b.tar.xz |
Various clean ups to room stream tokens. (#8423)
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py index bf800a3852..dc49df0812 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py @@ -23,7 +23,7 @@ from typing import Dict, Optional, Tuple, Type from unpaddedbase64 import encode_base64 from synapse.api.room_versions import EventFormatVersions, RoomVersion, RoomVersions -from synapse.types import JsonDict +from synapse.types import JsonDict, RoomStreamToken from synapse.util.caches import intern_dict from synapse.util.frozenutils import freeze @@ -118,8 +118,8 @@ class _EventInternalMetadata: # XXX: These are set by StreamWorkerStore._set_before_and_after. # I'm pretty sure that these are never persisted to the database, so shouldn't # be here - before = DictProperty("before") # type: str - after = DictProperty("after") # type: str + before = DictProperty("before") # type: RoomStreamToken + after = DictProperty("after") # type: RoomStreamToken order = DictProperty("order") # type: Tuple[int, int] def get_dict(self) -> JsonDict: |