Remove unneeded ActionGenerator class. (#12691)

It simply passes through to `BulkPushRuleEvaluator`, which can be
called directly instead.
This commit is contained in:
Patrick Cloke 2022-05-11 07:15:21 -04:00 committed by GitHub
parent 84facf769e
commit a4c75918b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 60 deletions

View file

@ -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: