-
- Downloads
Make token serializing/deserializing async (#8427)
The idea is that in future tokens will encode a mapping of instance to position. However, we don't want to include the full instance name in the string representation, so instead we'll have a mapping between instance name and an immutable integer ID in the DB that we can use instead. We'll then do the lookup when we serialize/deserialize the token (we could alternatively pass around an `Instance` type that includes both the name and ID, but that turns out to be a lot more invasive).
Showing
- changelog.d/8427.misc 1 addition, 0 deletionschangelog.d/8427.misc
- synapse/handlers/events.py 2 additions, 2 deletionssynapse/handlers/events.py
- synapse/handlers/initial_sync.py 7 additions, 7 deletionssynapse/handlers/initial_sync.py
- synapse/handlers/pagination.py 4 additions, 4 deletionssynapse/handlers/pagination.py
- synapse/handlers/room.py 5 additions, 3 deletionssynapse/handlers/room.py
- synapse/handlers/search.py 4 additions, 4 deletionssynapse/handlers/search.py
- synapse/rest/admin/__init__.py 1 addition, 1 deletionsynapse/rest/admin/__init__.py
- synapse/rest/client/v1/events.py 2 additions, 1 deletionsynapse/rest/client/v1/events.py
- synapse/rest/client/v1/initial_sync.py 2 additions, 1 deletionsynapse/rest/client/v1/initial_sync.py
- synapse/rest/client/v1/room.py 8 additions, 3 deletionssynapse/rest/client/v1/room.py
- synapse/rest/client/v2_alpha/keys.py 2 additions, 1 deletionsynapse/rest/client/v2_alpha/keys.py
- synapse/rest/client/v2_alpha/sync.py 5 additions, 5 deletionssynapse/rest/client/v2_alpha/sync.py
- synapse/storage/databases/main/purge_events.py 4 additions, 4 deletionssynapse/storage/databases/main/purge_events.py
- synapse/streams/config.py 5 additions, 4 deletionssynapse/streams/config.py
- synapse/types.py 35 additions, 8 deletionssynapse/types.py
- tests/rest/client/v1/test_rooms.py 22 additions, 8 deletionstests/rest/client/v1/test_rooms.py
- tests/storage/test_purge.py 6 additions, 3 deletionstests/storage/test_purge.py
Loading
Please register or sign in to comment