Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
607eec04
Commit
607eec04
authored
6 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
fix docstring for FederationClient.get_state_for_room
trivial fixes for docstring
parent
d4e0861f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/federation/federation_client.py
+4
-4
4 additions, 4 deletions
synapse/federation/federation_client.py
with
4 additions
and
4 deletions
synapse/federation/federation_client.py
+
4
−
4
View file @
607eec04
...
@@ -289,8 +289,7 @@ class FederationClient(FederationBase):
...
@@ -289,8 +289,7 @@ class FederationClient(FederationBase):
@defer.inlineCallbacks
@defer.inlineCallbacks
@log_function
@log_function
def
get_state_for_room
(
self
,
destination
,
room_id
,
event_id
):
def
get_state_for_room
(
self
,
destination
,
room_id
,
event_id
):
"""
Requests all of the `current` state PDUs for a given room from
"""
Requests all of the room state at a given event from a remote home server.
a remote home server.
Args:
Args:
destination (str): The remote homeserver to query for the state.
destination (str): The remote homeserver to query for the state.
...
@@ -298,9 +297,10 @@ class FederationClient(FederationBase):
...
@@ -298,9 +297,10 @@ class FederationClient(FederationBase):
event_id (str): The id of the event we want the state at.
event_id (str): The id of the event we want the state at.
Returns:
Returns:
Deferred: Results in a list of PDUs.
Deferred[Tuple[List[EventBase], List[EventBase]]]:
A list of events in the state, and a list of events in the auth chain
for the given event.
"""
"""
try
:
try
:
# First we try and ask for just the IDs, as thats far quicker if
# First we try and ask for just the IDs, as thats far quicker if
# we have most of the state and auth_chain already.
# we have most of the state and auth_chain already.
...
...
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