mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Stub out ServerNoticesSender on the workers
... and have the sync endpoints call it directly rather than obsure indirection via PresenceHandler
This commit is contained in:
parent
d5dca9a04f
commit
8810685df9
6 changed files with 66 additions and 8 deletions
|
@ -100,7 +100,6 @@ class PresenceHandler(object):
|
|||
self.notifier = hs.get_notifier()
|
||||
self.federation = hs.get_federation_sender()
|
||||
self.state = hs.get_state_handler()
|
||||
self._server_notices_sender = hs.get_server_notices_sender()
|
||||
|
||||
federation_registry = hs.get_federation_registry()
|
||||
|
||||
|
@ -433,9 +432,6 @@ class PresenceHandler(object):
|
|||
last_user_sync_ts=self.clock.time_msec(),
|
||||
)])
|
||||
|
||||
# send any outstanding server notices to the user.
|
||||
yield self._server_notices_sender.on_user_syncing(user_id)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def _end():
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue