mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 10:33:49 +01:00
Actually make 3PU lookup calls out to ASes
This commit is contained in:
parent
fa87c981e1
commit
3ec10dffd6
1 changed files with 10 additions and 1 deletions
|
@ -71,8 +71,17 @@ class ApplicationServiceApi(SimpleHttpClient):
|
|||
logger.warning("query_alias to %s threw exception %s", uri, ex)
|
||||
defer.returnValue(False)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def query_3pu(self, service, protocol, fields):
|
||||
return False
|
||||
uri = service.url + ("/3pu/%s" % urllib.quote(protocol))
|
||||
response = None
|
||||
try:
|
||||
response = yield self.get_json(uri, fields)
|
||||
defer.returnValue(response)
|
||||
except:
|
||||
# TODO: would be noisy to log lookup failures, but we want to log
|
||||
# other things. Hrm.
|
||||
defer.returnValue([])
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def push_bulk(self, service, events, txn_id=None):
|
||||
|
|
Loading…
Reference in a new issue