mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-20 10:55:09 +03:00
pep8
This commit is contained in:
parent
3223f415e2
commit
14059e2300
2 changed files with 7 additions and 3 deletions
|
@ -641,7 +641,9 @@ class FederationServer(FederationBase):
|
||||||
dont_relay.add(dest)
|
dont_relay.add(dest)
|
||||||
|
|
||||||
if destinations:
|
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(
|
yield self.handler.on_receive_pdu(
|
||||||
origin, pdu, sent_to_us_directly=True,
|
origin, pdu, sent_to_us_directly=True,
|
||||||
|
|
|
@ -810,9 +810,11 @@ class ServerHealth(ClientV1RestServlet):
|
||||||
"room_id": room_id,
|
"room_id": room_id,
|
||||||
})
|
})
|
||||||
|
|
||||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
event, context = yield (
|
||||||
|
self.event_creation_handler.create_new_client_event(
|
||||||
builder=builder,
|
builder=builder,
|
||||||
)
|
)
|
||||||
|
)
|
||||||
event.internal_metadata.internal_event = True
|
event.internal_metadata.internal_event = True
|
||||||
yield self.event_creation_handler.handle_new_client_event(
|
yield self.event_creation_handler.handle_new_client_event(
|
||||||
requester,
|
requester,
|
||||||
|
|
Loading…
Reference in a new issue