Add type ignore to calls of fcts using wrap_as_background_process
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user