This commit is contained in:
Kegan Dougal 2015-02-11 10:41:33 +00:00
parent 8beb613916
commit fd40d992ad
4 changed files with 1 additions and 9 deletions

View file

@ -71,7 +71,6 @@ class ApplicationServiceApi(SimpleHttpClient):
logger.warning("query_alias to %s threw exception %s", uri, ex)
defer.returnValue(False)
@defer.inlineCallbacks
def push_bulk(self, service, events):
events = self._serialize(events)
@ -107,4 +106,3 @@ class ApplicationServiceApi(SimpleHttpClient):
return [
serialize_event(e, time_now, as_client_event=True) for e in events
]

View file

@ -58,7 +58,6 @@ class DirectoryHandler(BaseHandler):
servers
)
@defer.inlineCallbacks
def create_association(self, user_id, room_alias, room_id, servers=None):
# association creation for human users
@ -75,7 +74,6 @@ class DirectoryHandler(BaseHandler):
)
yield self._create_association(room_alias, room_id, servers)
@defer.inlineCallbacks
def create_appservice_association(self, service, room_alias, room_id,
servers=None):
@ -127,7 +125,6 @@ class DirectoryHandler(BaseHandler):
# if room_id:
# yield self._update_room_alias_events(user_id, room_id)
@defer.inlineCallbacks
def get_association(self, room_alias):
room_id = None

View file

@ -65,7 +65,7 @@ class RegisterRestServlet(AppServiceRestServlet):
hs_token = app_service.hs_token
defer.returnValue((200, {
"hs_token": hs_token
"hs_token": hs_token
}))
def _parse_namespace(self, target_ns, origin_ns, ns):

View file

@ -97,7 +97,6 @@ class ApplicationServiceStore(SQLBaseStore):
# allocate new ASes. It relies on the server admin inserting the AS
# token into the database manually.
if not service.token or not service.url:
raise StoreError(400, "Token and url must be specified.")
@ -186,7 +185,6 @@ class ApplicationServiceStore(SQLBaseStore):
# TODO: The from_cache=False impl
# TODO: This should be JOINed with the application_services_regex table.
@defer.inlineCallbacks
def _populate_cache(self):
"""Populates the ApplicationServiceCache from the database."""
@ -244,4 +242,3 @@ class ApplicationServiceStore(SQLBaseStore):
hs_token=service["hs_token"],
sender=service["sender"]
))