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
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
Remove BaseHandler from ReceiptsHandler.
  • Loading branch information
clokep committed Oct 6, 2021
commit 4ec7f52b6e0f2de4b6e4d8b2f74a2e262e304eb9
1 change: 0 additions & 1 deletion synapse/handlers/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class BaseHandler:
def __init__(self, hs: "HomeServer"):
self.store = hs.get_datastore()
self.auth = hs.get_auth()
self.notifier = hs.get_notifier()
self.distributor = hs.get_distributor()
self.clock = hs.get_clock()
self.hs = hs
Expand Down
6 changes: 2 additions & 4 deletions synapse/handlers/receipts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

from synapse.api.constants import ReadReceiptEventFields
from synapse.appservice import ApplicationService
from synapse.handlers._base import BaseHandler
from synapse.streams import EventSource
from synapse.types import JsonDict, ReadReceipt, UserID, get_domain_from_id

Expand All @@ -26,10 +25,9 @@
logger = logging.getLogger(__name__)


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

self.notifier = hs.get_notifier()
self.server_name = hs.config.server.server_name
self.store = hs.get_datastore()
self.event_auth_handler = hs.get_event_auth_handler()
Expand Down