From c30c38cb6ac83ccbbfdd8f6e589db09c1445d0f1 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 1 Oct 2020 17:30:00 +0100 Subject: Fix 3 more tests --- synapse/appservice/scheduler.py | 4 +--- synapse/handlers/appservice.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'synapse') 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__) -- cgit 1.5.1