diff options
author | Erik Johnston <erik@matrix.org> | 2020-09-11 12:22:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 12:22:55 +0100 |
commit | fe8ed1b46f781faa45d1bba8f9308cf47c42010f (patch) | |
tree | 10d5b3cb181a70bd690a6e53461db5de394d9a4b /synapse/handlers/pagination.py | |
parent | Use TLSv1.2 for fake servers in tests (#8208) (diff) | |
download | synapse-fe8ed1b46f781faa45d1bba8f9308cf47c42010f.tar.xz |
Make `StreamToken.room_key` be a `RoomStreamToken` instance. (#8281)
Diffstat (limited to 'synapse/handlers/pagination.py')
-rw-r--r-- | synapse/handlers/pagination.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/pagination.py b/synapse/handlers/pagination.py index ec17d3d888..d929a68f7d 100644 --- a/synapse/handlers/pagination.py +++ b/synapse/handlers/pagination.py @@ -344,7 +344,7 @@ class PaginationHandler: # gets called. raise Exception("limit not set") - room_token = RoomStreamToken.parse(from_token.room_key) + room_token = from_token.room_key with await self.pagination_lock.read(room_id): ( @@ -381,7 +381,7 @@ class PaginationHandler: if leave_token.topological < max_topo: from_token = from_token.copy_and_replace( - "room_key", leave_token_str + "room_key", leave_token ) await self.hs.get_handlers().federation_handler.maybe_backfill( |