Convert the SimpleHttpClient to async. (#8016)

This commit is contained in:
Patrick Cloke 2020-08-04 07:22:04 -04:00 committed by GitHub
parent e19de43eb5
commit 88a3ff12f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 32 deletions

View file

@ -175,7 +175,7 @@ class ApplicationServiceApi(SimpleHttpClient):
urllib.parse.quote(protocol),
)
try:
info = yield self.get_json(uri, {})
info = yield defer.ensureDeferred(self.get_json(uri, {}))
if not _is_valid_3pe_metadata(info):
logger.warning(