Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Load /directory/room/{roomAlias} endpoint on workers #15333

Merged
merged 5 commits into from
Apr 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Enable directory
  • Loading branch information
dklimpel authored Mar 26, 2023
commit 61ed3a48fc38f46b878ce37559d430e22ada830d
3 changes: 1 addition & 2 deletions synapse/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def register_servlets(client_resource: HttpServer, hs: "HomeServer") -> None:
login.register_servlets(hs, client_resource)
profile.register_servlets(hs, client_resource)
presence.register_servlets(hs, client_resource)
if is_main_process:
directory.register_servlets(hs, client_resource)
directory.register_servlets(hs, client_resource)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also loading ClientAppserviceDirectoryListServer and ClientDirectoryListServer on the workers.

At a skim, it looks fine, but it should then have a CATEGORY and it should be in the path map like the other endpoints?
If you don't have time to check that they're fine on workers, I'd add if is_main_process inside directory.register_servlets and leave those until later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also loading ClientAppserviceDirectoryListServer and ClientDirectoryListServer on the workers.

I have it disabled.

voip.register_servlets(hs, client_resource)
if is_main_process:
pusher.register_servlets(hs, client_resource)
Expand Down