mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-25 09:40:28 -04:00
Remove unneeded ActionGenerator
class. (#12691)
It simply passes through to `BulkPushRuleEvaluator`, which can be called directly instead.
This commit is contained in:
parent
84facf769e
commit
a4c75918b3
7 changed files with 17 additions and 60 deletions
|
@ -119,7 +119,7 @@ from synapse.http.client import InsecureInterceptableContextFactory, SimpleHttpC
|
|||
from synapse.http.matrixfederationclient import MatrixFederationHttpClient
|
||||
from synapse.module_api import ModuleApi
|
||||
from synapse.notifier import Notifier
|
||||
from synapse.push.action_generator import ActionGenerator
|
||||
from synapse.push.bulk_push_rule_evaluator import BulkPushRuleEvaluator
|
||||
from synapse.push.pusherpool import PusherPool
|
||||
from synapse.replication.tcp.client import ReplicationDataHandler
|
||||
from synapse.replication.tcp.external_cache import ExternalCache
|
||||
|
@ -644,8 +644,8 @@ class HomeServer(metaclass=abc.ABCMeta):
|
|||
return ReplicationCommandHandler(self)
|
||||
|
||||
@cache_in_self
|
||||
def get_action_generator(self) -> ActionGenerator:
|
||||
return ActionGenerator(self)
|
||||
def get_bulk_push_rule_evaluator(self) -> BulkPushRuleEvaluator:
|
||||
return BulkPushRuleEvaluator(self)
|
||||
|
||||
@cache_in_self
|
||||
def get_user_directory_handler(self) -> UserDirectoryHandler:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue