mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 22:24:48 -04:00
SpamChecker metrics (#12513)
* add Measure blocks all over SpamChecker Signed-off-by: jesopo <github@lolnerd.net> * fix test_spam_checker_may_join_room and test_threepid_invite_spamcheck * better changelog entry
This commit is contained in:
parent
c9fc2c0d22
commit
39bed28b28
4 changed files with 64 additions and 26 deletions
|
@ -681,7 +681,7 @@ class HomeServer(metaclass=abc.ABCMeta):
|
|||
|
||||
@cache_in_self
|
||||
def get_spam_checker(self) -> SpamChecker:
|
||||
return SpamChecker()
|
||||
return SpamChecker(self)
|
||||
|
||||
@cache_in_self
|
||||
def get_third_party_event_rules(self) -> ThirdPartyEventRules:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue