summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2020-10-01 17:30:00 +0100
committerWill Hunt <will@half-shot.uk>2020-10-01 17:36:59 +0100
commitc30c38cb6ac83ccbbfdd8f6e589db09c1445d0f1 (patch)
treed59a2be48aaf930c0fefb2020244cdff3feecbb5 /synapse
parentfix collection bug (diff)
downloadsynapse-c30c38cb6ac83ccbbfdd8f6e589db09c1445d0f1.tar.xz
Fix 3 more tests
Diffstat (limited to 'synapse')
-rw-r--r--synapse/appservice/scheduler.py4
-rw-r--r--synapse/handlers/appservice.py3
2 files changed, 2 insertions, 5 deletions
diff --git a/synapse/appservice/scheduler.py b/synapse/appservice/scheduler.py
index 251224064d..f28e0de192 100644
--- a/synapse/appservice/scheduler.py
+++ b/synapse/appservice/scheduler.py
@@ -134,9 +134,7 @@ class _ServiceQueuer:
             "as-sender-%s" % (service.id), self._send_request, service
         )
 
-    async def _send_request(
-        self, service: ApplicationService
-    ):
+    async def _send_request(self, service: ApplicationService):
         # sanity-check: we shouldn't get here if this service already has a sender
         # running.
         assert service.id not in self.requests_in_flight
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index f1b71029e5..3d8f82b365 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -15,7 +15,6 @@
 
 import logging
 from typing import List, Union
-from synapse.types import Collection
 
 from prometheus_client import Counter
 
@@ -31,7 +30,7 @@ from synapse.metrics import (
     event_processing_loop_room_count,
 )
 from synapse.metrics.background_process_metrics import run_as_background_process
-from synapse.types import RoomStreamToken, UserID
+from synapse.types import Collection, RoomStreamToken, UserID
 from synapse.util.metrics import Measure
 
 logger = logging.getLogger(__name__)