Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
d73683c3
Commit
d73683c3
authored
5 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
make FederationClient.get_room_state_ids async
parent
0cb0c7bc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/federation/federation_client.py
+5
-4
5 additions, 4 deletions
synapse/federation/federation_client.py
with
5 additions
and
4 deletions
synapse/federation/federation_client.py
+
5
−
4
View file @
d73683c3
...
...
@@ -307,15 +307,16 @@ class FederationClient(FederationBase):
return
signed_pdu
@defer.inlineCallbacks
def
get_room_state_ids
(
self
,
destination
:
str
,
room_id
:
str
,
event_id
:
str
):
async
def
get_room_state_ids
(
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
in the room, and the auth events for the given event
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment