mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
make FederationClient.get_room_state_ids async
This commit is contained in:
parent
0cb0c7bcd5
commit
d73683c363
@ -307,15 +307,16 @@ class FederationClient(FederationBase):
|
|||||||
|
|
||||||
return signed_pdu
|
return signed_pdu
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
async def get_room_state_ids(
|
||||||
def get_room_state_ids(self, destination: str, room_id: str, event_id: str):
|
self, destination: str, room_id: str, event_id: str
|
||||||
|
) -> Tuple[List[str], List[str]]:
|
||||||
"""Calls the /state_ids endpoint to fetch the state at a particular point
|
"""Calls the /state_ids endpoint to fetch the state at a particular point
|
||||||
in the room, and the auth events for the given event
|
in the room, and the auth events for the given event
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Tuple[List[str], List[str]]: a tuple of (state event_ids, auth event_ids)
|
a tuple of (state event_ids, auth event_ids)
|
||||||
"""
|
"""
|
||||||
result = yield self.transport_layer.get_room_state_ids(
|
result = await self.transport_layer.get_room_state_ids(
|
||||||
destination, room_id, event_id=event_id
|
destination, room_id, event_id=event_id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user