mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 19:15:51 +03:00
Update docstring to clarify that get_partial_state_events_batch
does not just give you completely arbitrary partial-state events. (#14417)
This commit is contained in:
parent
64dd8a9c6e
commit
634359b083
2 changed files with 10 additions and 1 deletions
1
changelog.d/14417.misc
Normal file
1
changelog.d/14417.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Update docstring to clarify that `get_partial_state_events_batch` does not just give you completely arbitrary partial-state events.
|
|
@ -2228,7 +2228,15 @@ class EventsWorkerStore(SQLBaseStore):
|
||||||
return result is not None
|
return result is not None
|
||||||
|
|
||||||
async def get_partial_state_events_batch(self, room_id: str) -> List[str]:
|
async def get_partial_state_events_batch(self, room_id: str) -> List[str]:
|
||||||
"""Get a list of events in the given room that have partial state"""
|
"""
|
||||||
|
Get a list of events in the given room that:
|
||||||
|
- have partial state; and
|
||||||
|
- are ready to be resynced (because they have no prev_events that are
|
||||||
|
partial-stated)
|
||||||
|
|
||||||
|
See the docstring on `_get_partial_state_events_batch_txn` for more
|
||||||
|
information.
|
||||||
|
"""
|
||||||
return await self.db_pool.runInteraction(
|
return await self.db_pool.runInteraction(
|
||||||
"get_partial_state_events_batch",
|
"get_partial_state_events_batch",
|
||||||
self._get_partial_state_events_batch_txn,
|
self._get_partial_state_events_batch_txn,
|
||||||
|
|
Loading…
Reference in a new issue