summary refs log tree commit diff
path: root/synapse/federation/federation_server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-02-07 13:56:38 +0000
committerGitHub <noreply@github.com>2020-02-07 13:56:38 +0000
commitb08b0a22d505b1555f511e3f38935a62930ea25d (patch)
tree53cfe0c6c9d59e8d1b97affa473041692b056c96 /synapse/federation/federation_server.py
parentAllow moving group read APIs to workers (#6866) (diff)
downloadsynapse-b08b0a22d505b1555f511e3f38935a62930ea25d.tar.xz
Add typing to synapse.federation.sender (#6871)
Diffstat (limited to 'synapse/federation/federation_server.py')
-rw-r--r--synapse/federation/federation_server.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py
index 2489832a11..a6c966a393 100644
--- a/synapse/federation/federation_server.py
+++ b/synapse/federation/federation_server.py
@@ -294,7 +294,12 @@ class FederationServer(FederationBase):
         async def _process_edu(edu_dict):
             received_edus_counter.inc()
 
-            edu = Edu(**edu_dict)
+            edu = Edu(
+                origin=origin,
+                destination=self.server_name,
+                edu_type=edu_dict["edu_type"],
+                content=edu_dict["content"],
+            )
             await self.registry.on_edu(edu.edu_type, origin, edu.content)
 
         await concurrently_execute(