mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 15:44:21 -05:00
Don't use keyword arguments when initialising modules (#13060)
This commit is contained in:
parent
75fb10ee45
commit
417f4cf40b
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 New Issue
Block a user