summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-11-23 16:02:48 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-02-13 14:24:41 +0000
commit14059e230056ba2eaca25499339ddb053bf4ee42 (patch)
tree4fe2506148da1127666d7fb45380f61e88d79176
parentAdd server health apis and server presence (diff)
downloadsynapse-14059e230056ba2eaca25499339ddb053bf4ee42.tar.xz
pep8
-rw-r--r--synapse/federation/federation_server.py4
-rw-r--r--synapse/rest/client/v1/admin.py6
2 files changed, 7 insertions, 3 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py
index b878023058..eb337007f1 100644
--- a/synapse/federation/federation_server.py
+++ b/synapse/federation/federation_server.py
@@ -641,7 +641,9 @@ class FederationServer(FederationBase):
                 dont_relay.add(dest)
 
         if destinations:
-            pdu.unsigned["destinations"] = {d: c for d, c in destinations.items() if d not in dont_relay}
+            pdu.unsigned["destinations"] = {
+                d: c for d, c in destinations.items() if d not in dont_relay
+            }
 
         yield self.handler.on_receive_pdu(
             origin, pdu, sent_to_us_directly=True,
diff --git a/synapse/rest/client/v1/admin.py b/synapse/rest/client/v1/admin.py
index c729cdbd30..50bfd0bb9e 100644
--- a/synapse/rest/client/v1/admin.py
+++ b/synapse/rest/client/v1/admin.py
@@ -810,8 +810,10 @@ class ServerHealth(ClientV1RestServlet):
                     "room_id": room_id,
                 })
 
-                event, context = yield self.event_creation_handler.create_new_client_event(
-                    builder=builder,
+                event, context = yield (
+                    self.event_creation_handler.create_new_client_event(
+                        builder=builder,
+                    )
                 )
                 event.internal_metadata.internal_event = True
                 yield self.event_creation_handler.handle_new_client_event(