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
Package registry
Container Registry
Model registry
Operate
Terraform modules
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
Timo Ley
synapse
Commits
28223841
Commit
28223841
authored
6 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
more comments
parent
ad8e1370
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/federation/federation_client.py
+0
-2
0 additions, 2 deletions
synapse/federation/federation_client.py
synapse/handlers/federation.py
+3
-4
3 additions, 4 deletions
synapse/handlers/federation.py
with
3 additions
and
6 deletions
synapse/federation/federation_client.py
+
0
−
2
View file @
28223841
...
@@ -209,8 +209,6 @@ class FederationClient(FederationBase):
...
@@ -209,8 +209,6 @@ class FederationClient(FederationBase):
Will attempt to get the PDU from each destination in the list until
Will attempt to get the PDU from each destination in the list until
one succeeds.
one succeeds.
This will persist the PDU locally upon receipt.
Args:
Args:
destinations (list): Which home servers to query
destinations (list): Which home servers to query
event_id (str): event to fetch
event_id (str): event to fetch
...
...
This diff is collapsed.
Click to expand it.
synapse/handlers/federation.py
+
3
−
4
View file @
28223841
...
@@ -341,10 +341,9 @@ class FederationHandler(BaseHandler):
...
@@ -341,10 +341,9 @@ class FederationHandler(BaseHandler):
)
)
with
logcontext
.
nested_logging_context
(
p
):
with
logcontext
.
nested_logging_context
(
p
):
# XXX if any of the missing prevs share missing state or auth
# note that if any of the missing prevs share missing state or
# events, we'll end up requesting those missing events for
# auth events, the requests to fetch those events are deduped
# *each* missing prev, contributing to the hammering of /event
# by the get_pdu_cache in federation_client.
# as per https://github.com/matrix-org/synapse/issues/2164.
remote_state
,
got_auth_chain
=
(
remote_state
,
got_auth_chain
=
(
yield
self
.
federation_client
.
get_state_for_room
(
yield
self
.
federation_client
.
get_state_for_room
(
origin
,
room_id
,
p
,
origin
,
room_id
,
p
,
...
...
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