diff options
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/appservice/scheduler.py | 4 | ||||
-rw-r--r-- | synapse/handlers/appservice.py | 3 |
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__) |