Remove some run_on_reactors

This commit is contained in:
Erik Johnston 2015-05-01 14:37:33 +01:00
parent adb5b76ff5
commit 42c12c04f6
3 changed files with 0 additions and 10 deletions

View File

@ -20,7 +20,6 @@ from twisted.internet import defer
from synapse.api.constants import EventTypes, Membership, JoinRules from synapse.api.constants import EventTypes, Membership, JoinRules
from synapse.api.errors import AuthError, Codes, SynapseError from synapse.api.errors import AuthError, Codes, SynapseError
from synapse.util.logutils import log_function from synapse.util.logutils import log_function
from synapse.util.async import run_on_reactor
from synapse.types import UserID, ClientInfo from synapse.types import UserID, ClientInfo
import logging import logging
@ -427,8 +426,6 @@ class Auth(object):
@defer.inlineCallbacks @defer.inlineCallbacks
def add_auth_events(self, builder, context): def add_auth_events(self, builder, context):
yield run_on_reactor()
auth_ids = self.compute_auth_events(builder, context.current_state) auth_ids = self.compute_auth_events(builder, context.current_state)
auth_events_entries = yield self.store.add_event_hashes( auth_events_entries = yield self.store.add_event_hashes(

View File

@ -89,8 +89,6 @@ class FederationHandler(BaseHandler):
processing. processing.
""" """
yield run_on_reactor()
self.replication_layer.send_pdu(event, destinations) self.replication_layer.send_pdu(event, destinations)
@log_function @log_function

View File

@ -17,7 +17,6 @@ from twisted.internet import defer
from synapse.util.logutils import log_function from synapse.util.logutils import log_function
from synapse.util.logcontext import PreserveLoggingContext from synapse.util.logcontext import PreserveLoggingContext
from synapse.util.async import run_on_reactor
from synapse.types import StreamToken from synapse.types import StreamToken
import synapse.metrics import synapse.metrics
@ -162,8 +161,6 @@ class Notifier(object):
listening to the room, and any listeners for the users in the listening to the room, and any listeners for the users in the
`extra_users` param. `extra_users` param.
""" """
yield run_on_reactor()
# poke any interested application service. # poke any interested application service.
self.hs.get_handlers().appservice_handler.notify_interested_services( self.hs.get_handlers().appservice_handler.notify_interested_services(
event event
@ -240,8 +237,6 @@ class Notifier(object):
Will wake up all listeners for the given users and rooms. Will wake up all listeners for the given users and rooms.
""" """
yield run_on_reactor()
# TODO(paul): This is horrible, having to manually list every event # TODO(paul): This is horrible, having to manually list every event
# source here individually # source here individually
presence_source = self.event_sources.sources["presence"] presence_source = self.event_sources.sources["presence"]