-
- Downloads
Removed `request_key` from the `SyncConfig` (moved outside as its own function parameter) (#17201)
Removed `request_key` from the `SyncConfig` (moved outside as its own function parameter) so it doesn't have to flow into `_generate_sync_entry_for_xxx` methods. This way we can separate the concerns of caching from generating the response and reuse the `_generate_sync_entry_for_xxx` functions as we see fit. Plus caching doesn't really have anything to do with the config of sync. Split from https://github.com/element-hq/synapse/pull/17167 Spawning from https://github.com/element-hq/synapse/pull/17167#discussion_r1601497279
Showing
- changelog.d/17201.misc 1 addition, 0 deletionschangelog.d/17201.misc
- synapse/handlers/sync.py 3 additions, 3 deletionssynapse/handlers/sync.py
- synapse/rest/client/sync.py 1 addition, 1 deletionsynapse/rest/client/sync.py
- tests/events/test_presence_router.py 15 additions, 2 deletionstests/events/test_presence_router.py
- tests/handlers/test_sync.py 39 additions, 8 deletionstests/handlers/test_sync.py
Loading
Please register or sign in to comment