summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/federation/federation_server.py6
-rw-r--r--synapse/federation/sender/__init__.py2
-rw-r--r--synapse/handlers/appservice.py4
-rw-r--r--synapse/handlers/device.py2
-rw-r--r--synapse/push/pusherpool.py2
5 files changed, 8 insertions, 8 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py

index bb20af6e91..cadd18d18c 100644 --- a/synapse/federation/federation_server.py +++ b/synapse/federation/federation_server.py
@@ -191,7 +191,7 @@ class FederationServer(FederationBase): ) if lock: logger.info("Handling old staged inbound events in %s", room_id) - self._process_incoming_pdus_in_room_inner( + self._process_incoming_pdus_in_room_inner( # type: ignore[unused-awaitable] room_id, room_version, lock, @@ -268,7 +268,7 @@ class FederationServer(FederationBase): # any old events in the staging area. if not self._started_handling_of_staged_events: self._started_handling_of_staged_events = True - self._handle_old_staged_events() + self._handle_old_staged_events() # type: ignore[unused-awaitable] # Start a periodic check for old staged events. This is to handle # the case where locks time out, e.g. if another process gets killed @@ -1129,7 +1129,7 @@ class FederationServer(FederationBase): _INBOUND_EVENT_HANDLING_LOCK_NAME, pdu.room_id ) if lock: - self._process_incoming_pdus_in_room_inner( + self._process_incoming_pdus_in_room_inner( # type: ignore[unused-awaitable] pdu.room_id, room_version, lock, origin, pdu ) diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py
index dc67aba843..294be7018b 100644 --- a/synapse/federation/sender/__init__.py +++ b/synapse/federation/sender/__init__.py
@@ -187,7 +187,7 @@ class _DestinationWakeupQueue: self.queue[destination] = None if not self.processing: - self._handle() + self._handle() # type: ignore[unused-awaitable] @wrap_as_background_process("_DestinationWakeupQueue.handle") async def _handle(self) -> None: diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index bf627d562c..94a9f10a2a 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py
@@ -97,7 +97,7 @@ class ApplicationServicesHandler: # We only start a new background process if necessary rather than # optimistically (to cut down on overhead). - self._notify_interested_services(max_token) + self._notify_interested_services(max_token) # type: ignore[unused-awaitable] @wrap_as_background_process("notify_interested_services") async def _notify_interested_services(self, max_token: RoomStreamToken) -> None: @@ -307,7 +307,7 @@ class ApplicationServicesHandler: # We only start a new background process if necessary rather than # optimistically (to cut down on overhead). - self._notify_interested_services_ephemeral( + self._notify_interested_services_ephemeral( # type: ignore[unused-awaitable] services, stream_key, new_token, users ) diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index c597639a7f..2a2821300c 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py
@@ -558,7 +558,7 @@ class DeviceHandler(DeviceWorkerHandler): # We may need to do some processing asynchronously for local user IDs. if self.hs.is_mine_id(user_id): - self._handle_new_device_update_async() + self._handle_new_device_update_async() # type: ignore[unused-awaitable] async def notify_user_signature_update( self, from_user_id: str, user_ids: List[str] diff --git a/synapse/push/pusherpool.py b/synapse/push/pusherpool.py
index d14c9b25bc..d9589f76f9 100644 --- a/synapse/push/pusherpool.py +++ b/synapse/push/pusherpool.py
@@ -236,7 +236,7 @@ class PusherPool: # We only start a new background process if necessary rather than # optimistically (to cut down on overhead). - self._on_new_notifications(max_token) + self._on_new_notifications(max_token) # type: ignore[unused-awaitable] @wrap_as_background_process("on_new_notifications") async def _on_new_notifications(self, max_token: RoomStreamToken) -> None: