mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:34:47 -04:00
Apply suggestions from code review
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
This commit is contained in:
parent
402213bf41
commit
995cc615a0
2 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ class PushRuleEvaluatorForEvent:
|
|||
# Caches (string, is_glob, word_boundary) -> regex for push. See _glob_matches
|
||||
regex_cache = LruCache(
|
||||
50000, "regex_push_cache"
|
||||
) # type: LruCache[Tuple[str, bool, bool],Pattern]
|
||||
) # type: LruCache[Tuple[str, bool, bool], Pattern]
|
||||
|
||||
|
||||
def _glob_matches(glob: str, value: str, word_boundary: bool = False) -> bool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue