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
a287f1e8
Commit
a287f1e8
authored
5 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Don't return coroutines
parent
74c1e161
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_server.py
+6
-6
6 additions, 6 deletions
synapse/federation/federation_server.py
with
6 additions
and
6 deletions
synapse/federation/federation_server.py
+
6
−
6
View file @
a287f1e8
...
...
@@ -809,7 +809,7 @@ class ReplicationFederationHandlerRegistry(FederationHandlerRegistry):
super
(
ReplicationFederationHandlerRegistry
,
self
).
__init__
()
def
on_edu
(
self
,
edu_type
,
origin
,
content
):
async
def
on_edu
(
self
,
edu_type
,
origin
,
content
):
"""
Overrides FederationHandlerRegistry
"""
if
not
self
.
config
.
use_presence
and
edu_type
==
"
m.presence
"
:
...
...
@@ -817,17 +817,17 @@ class ReplicationFederationHandlerRegistry(FederationHandlerRegistry):
handler
=
self
.
edu_handlers
.
get
(
edu_type
)
if
handler
:
return
super
(
ReplicationFederationHandlerRegistry
,
self
).
on_edu
(
return
await
super
(
ReplicationFederationHandlerRegistry
,
self
).
on_edu
(
edu_type
,
origin
,
content
)
return
self
.
_send_edu
(
edu_type
=
edu_type
,
origin
=
origin
,
content
=
content
)
return
await
self
.
_send_edu
(
edu_type
=
edu_type
,
origin
=
origin
,
content
=
content
)
def
on_query
(
self
,
query_type
,
args
):
async
def
on_query
(
self
,
query_type
,
args
):
"""
Overrides FederationHandlerRegistry
"""
handler
=
self
.
query_handlers
.
get
(
query_type
)
if
handler
:
return
handler
(
args
)
return
await
handler
(
args
)
return
self
.
_get_query_client
(
query_type
=
query_type
,
args
=
args
)
return
await
self
.
_get_query_client
(
query_type
=
query_type
,
args
=
args
)
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