summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-16 19:22:24 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-16 19:22:24 +0000
commit638820f5713e67cc43e65f25ce09aefcd703450e (patch)
tree06b32ec4c5174d5e4f35ee862b30fa3ef80260f6 /synapse/federation
parentMerge pull request #6294 from matrix-org/erikj/add_state_storage (diff)
parentUpdate black to 19.10b0 (#6304) (diff)
downloadsynapse-638820f5713e67cc43e65f25ce09aefcd703450e.tar.xz
Update black to 19.10b0 (#6304)
* commit '020add509':
  Update black to 19.10b0 (#6304)
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/sender/per_destination_queue.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/synapse/federation/sender/per_destination_queue.py b/synapse/federation/sender/per_destination_queue.py
index cc75c39476..b754a09d7a 100644
--- a/synapse/federation/sender/per_destination_queue.py
+++ b/synapse/federation/sender/per_destination_queue.py
@@ -192,15 +192,16 @@ class PerDestinationQueue(object):
                 # We have to keep 2 free slots for presence and rr_edus
                 limit = MAX_EDUS_PER_TRANSACTION - 2
 
-                device_update_edus, dev_list_id = (
-                    yield self._get_device_update_edus(limit)
+                device_update_edus, dev_list_id = yield self._get_device_update_edus(
+                    limit
                 )
 
                 limit -= len(device_update_edus)
 
-                to_device_edus, device_stream_id = (
-                    yield self._get_to_device_message_edus(limit)
-                )
+                (
+                    to_device_edus,
+                    device_stream_id,
+                ) = yield self._get_to_device_message_edus(limit)
 
                 pending_edus = device_update_edus + to_device_edus