mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-11 20:42:23 +01:00
Don't use keyword arguments when initialising modules (#13060)
This commit is contained in:
parent
75fb10ee45
commit
417f4cf40b
2 changed files with 2 additions and 1 deletions
1
changelog.d/13060.misc
Normal file
1
changelog.d/13060.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Don't instantiate modules with keyword arguments.
|
|
@ -450,7 +450,7 @@ async def start(hs: "HomeServer") -> None:
|
||||||
# before we start the listeners.
|
# before we start the listeners.
|
||||||
module_api = hs.get_module_api()
|
module_api = hs.get_module_api()
|
||||||
for module, config in hs.config.modules.loaded_modules:
|
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)
|
logger.info("Loaded module %s", m)
|
||||||
|
|
||||||
load_legacy_spam_checkers(hs)
|
load_legacy_spam_checkers(hs)
|
||||||
|
|
Loading…
Reference in a new issue