Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Remove the deprecated BaseHandler. #11005

Merged
merged 21 commits into from
Oct 8, 2021
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove BaseHandler from DeviceWorkerHandler.
  • Loading branch information
clokep committed Oct 6, 2021
commit e6958daf06eb09779efc1ed36c27207ee3cf74c4
10 changes: 5 additions & 5 deletions synapse/handlers/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
from synapse.util.metrics import measure_func
from synapse.util.retryutils import NotRetryingDestination

from ._base import BaseHandler

if TYPE_CHECKING:
from synapse.server import HomeServer

Expand All @@ -50,14 +48,16 @@
MAX_DEVICE_DISPLAY_NAME_LEN = 100


class DeviceWorkerHandler(BaseHandler):
class DeviceWorkerHandler:
def __init__(self, hs: "HomeServer"):
super().__init__(hs)

self.clock = hs.get_clock()
self.hs = hs
self.store = hs.get_datastore()
self.notifier = hs.get_notifier()
self.state = hs.get_state_handler()
self.state_store = hs.get_storage().state
self._auth_handler = hs.get_auth_handler()
self.server_name = hs.hostname

@trace
async def get_devices_by_user(self, user_id: str) -> List[JsonDict]:
Expand Down