mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-19 01:44:18 -05: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
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 New Issue
Block a user