summary refs log tree commit diff
path: root/synapse/replication/http
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-29 10:30:26 +0000
committerErik Johnston <erik@matrix.org>2019-01-29 10:30:26 +0000
commitb6b73a0bcf32be524170c4bbe1bf3916312d1173 (patch)
tree9dd247b82eb285aedda59b4979578b222b768a98 /synapse/replication/http
parentFix typo in upserts code (#4505) (diff)
downloadsynapse-b6b73a0bcf32be524170c4bbe1bf3916312d1173.tar.xz
Fix receiving events from federation via a worker
This bug was introduced in PR #4470, commit 678a92cb56d547dcadffa723e29b4855a27d0901
Diffstat (limited to 'synapse/replication/http')
-rw-r--r--synapse/replication/http/federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/http/federation.py b/synapse/replication/http/federation.py
index 2e16c69666..0f0a07c422 100644
--- a/synapse/replication/http/federation.py
+++ b/synapse/replication/http/federation.py
@@ -95,7 +95,7 @@ class ReplicationFederationSendEventsRestServlet(ReplicationEndpoint):
             event_and_contexts = []
             for event_payload in event_payloads:
                 event_dict = event_payload["event"]
-                format_ver = content["event_format_version"]
+                format_ver = event_payload["event_format_version"]
                 internal_metadata = event_payload["internal_metadata"]
                 rejected_reason = event_payload["rejected_reason"]