mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +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)
|
||||
|
||||
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,
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue