diff options
author | Erik Johnston <erik@matrix.org> | 2021-06-21 14:38:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 14:38:59 +0100 |
commit | a5cd05beeeac80df0352bd50c2ad2e017664665c (patch) | |
tree | 582741c4805d25a8869d1dbba82f80fe58b7fc14 /synapse/config/_base.pyi | |
parent | Check third party rules before persisting knocks over federation (#10212) (diff) | |
download | synapse-a5cd05beeeac80df0352bd50c2ad2e017664665c.tar.xz |
Fix performance of responding to user key requests over federation (#10221)
We were repeatedly looking up a config option in a loop (using the unclassed config style), which is expensive enough that it can cause large CPU usage.
Diffstat (limited to 'synapse/config/_base.pyi')
-rw-r--r-- | synapse/config/_base.pyi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/config/_base.pyi b/synapse/config/_base.pyi index 844ecd4708..23ca0c83c1 100644 --- a/synapse/config/_base.pyi +++ b/synapse/config/_base.pyi @@ -11,6 +11,7 @@ from synapse.config import ( database, emailconfig, experimental, + federation, groups, jwt, key, @@ -87,6 +88,7 @@ class RootConfig: tracer: tracer.TracerConfig redis: redis.RedisConfig modules: modules.ModulesConfig + federation: federation.FederationConfig config_classes: List = ... def __init__(self) -> None: ... |