mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Merge branch 'develop' into application-services-txn-reliability
Conflicts: synapse/storage/appservice.py
This commit is contained in:
commit
f9232c7917
45 changed files with 1192 additions and 372 deletions
|
@ -341,7 +341,7 @@ class ApplicationServiceStore(SQLBaseStore):
|
|||
sql = ("SELECT r.*, a.* FROM application_services AS a LEFT JOIN "
|
||||
"application_services_regex AS r ON a.id = r.as_id")
|
||||
|
||||
results = yield self._execute_and_decode(sql)
|
||||
results = yield self._execute_and_decode("appservice_cache", sql)
|
||||
services = self._parse_services_dict(results)
|
||||
|
||||
for service in services:
|
||||
|
@ -369,7 +369,9 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
|
|||
"application_services AS a ON a.id=s.as_id LEFT JOIN "
|
||||
"application_services_regex AS r ON r.as_id=a.id WHERE state = ?"
|
||||
)
|
||||
results = yield self._execute_and_decode(sql, state)
|
||||
results = yield self._execute_and_decode(
|
||||
"get_appservices_by_state", sql, state
|
||||
)
|
||||
# NB: This assumes this class is linked with ApplicationServiceStore
|
||||
defer.returnValue(self._parse_services_dict(results))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue