diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2022-06-15 15:36:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 15:36:16 +0200 |
commit | 417f4cf40b3f2dc19cab6b9d17d15e43af679ae6 (patch) | |
tree | 4831646c53e43efe8aac44688da6fd7a024d1882 | |
parent | Clean up schema for `event_edges` (#12893) (diff) | |
download | synapse-417f4cf40b3f2dc19cab6b9d17d15e43af679ae6.tar.xz |
Don't use keyword arguments when initialising modules (#13060)
Diffstat (limited to '')
-rw-r--r-- | changelog.d/13060.misc | 1 | ||||
-rw-r--r-- | synapse/app/_base.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/13060.misc b/changelog.d/13060.misc new file mode 100644 index 0000000000..c2376701f4 --- /dev/null +++ b/changelog.d/13060.misc @@ -0,0 +1 @@ +Don't instantiate modules with keyword arguments. diff --git a/synapse/app/_base.py b/synapse/app/_base.py index 84e389a6cd..363ac98ea9 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py @@ -450,7 +450,7 @@ async def start(hs: "HomeServer") -> None: # before we start the listeners. module_api = hs.get_module_api() for module, config in hs.config.modules.loaded_modules: - m = module(config=config, api=module_api) + m = module(config, module_api) logger.info("Loaded module %s", m) load_legacy_spam_checkers(hs) |