ReviewBot: utilize memoize cached config.

This commit is contained in:
Jimmy Berry 2018-08-21 01:53:29 -05:00
parent d7d5724dae
commit 3ece452a03

View File

@ -141,7 +141,7 @@ class ReviewBot(object):
def staging_api(self, project): def staging_api(self, project):
if project not in self.staging_apis: if project not in self.staging_apis:
Config(self.apiurl, project) Config.get(self.apiurl, project)
self.staging_apis[project] = StagingAPI(self.apiurl, project) self.staging_apis[project] = StagingAPI(self.apiurl, project)
return self.staging_apis[project] return self.staging_apis[project]