Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
un-async get_room_state_ids
Browse files Browse the repository at this point in the history
this is called from non-async functions, so we're not ready to async it yet.
  • Loading branch information
richvdh committed Dec 10, 2019
1 parent 0a032ea commit 8dd0159
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions synapse/federation/federation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,15 @@ def get_pdu(

return signed_pdu

async def get_room_state_ids(
self, destination: str, room_id: str, event_id: str
) -> Tuple[List[str], List[str]]:
@defer.inlineCallbacks
def get_room_state_ids(self, destination: str, room_id: str, event_id: str):
"""Calls the /state_ids endpoint to fetch the state at a particular point
in the room, and the auth events for the given event
Returns:
a tuple of (state event_ids, auth event_ids)
Tuple[List[str], List[str]]: a tuple of (state event_ids, auth event_ids)
"""
result = await self.transport_layer.get_room_state_ids(
result = yield self.transport_layer.get_room_state_ids(
destination, room_id, event_id=event_id
)

Expand Down

0 comments on commit 8dd0159

Please sign in to comment.