mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 17:54:10 -04:00
Efficiency fix for lookups of a single protocol
This commit is contained in:
parent
3328428d05
commit
25eb769b26
2 changed files with 7 additions and 2 deletions
|
@ -55,7 +55,9 @@ class ThirdPartyProtocolServlet(RestServlet):
|
|||
def on_GET(self, request, protocol):
|
||||
yield self.auth.get_user_by_req(request)
|
||||
|
||||
protocols = yield self.appservice_handler.get_3pe_protocols()
|
||||
protocols = yield self.appservice_handler.get_3pe_protocols(
|
||||
only_protocol=protocol,
|
||||
)
|
||||
if protocol in protocols:
|
||||
defer.returnValue((200, protocols[protocol]))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue