diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2016-08-25 15:57:07 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2016-08-25 15:57:07 +0100 |
commit | c435bfee9c2536b23bd2fbd0a590231a4bd2e050 (patch) | |
tree | 88b28c93ac485bce74fc6ebb4f15ba0e57549aa2 | |
parent | Implement a ResponseCache around 3PE lookup metadata lookups (diff) | |
download | synapse-c435bfee9c2536b23bd2fbd0a590231a4bd2e050.tar.xz |
Don't need toplevel cache on 3PE lookup metadata any more
-rw-r--r-- | synapse/handlers/appservice.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py index efb9da798d..94d7817432 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py @@ -48,7 +48,6 @@ class ApplicationServicesHandler(object): self.current_max = 0 self.is_processing = False - self.supported_protocols = None @defer.inlineCallbacks def notify_interested_services(self, current_id): @@ -178,19 +177,12 @@ class ApplicationServicesHandler(object): @defer.inlineCallbacks def get_3pe_protocols(self): - # The set of supported AS protocols and the metadata about them is - # effectively static during the lifetime of a homeserver process. We - # can look this up once and just cache it. - if self.supported_protocols: - defer.returnValue(self.supported_protocols) - services = yield self.store.get_app_services() protocols = {} for s in services: for p in s.protocols: protocols[p] = yield self.appservice_api.get_3pe_protocol(s, p) - self.supported_protocols = protocols defer.returnValue(protocols) @defer.inlineCallbacks |