diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-04-30 10:23:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 10:23:59 +0100 |
commit | 63ae5cbf3470fbb56498de5da6909def47151236 (patch) | |
tree | 3431f0a978ae5a5dc102e4ff93d9389812829d6b /synapse | |
parent | Merge pull request #3144 from matrix-org/rav/run_in_background_exception_hand... (diff) | |
parent | Remove redundant call to preserve_fn (diff) | |
download | synapse-63ae5cbf3470fbb56498de5da6909def47151236.tar.xz |
Merge pull request #3143 from matrix-org/rav/remove_redundant_preserve_fn
Remove redundant call to preserve_fn
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/appservice.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py index 0d11d890ff..b596f098fd 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py @@ -19,7 +19,7 @@ import synapse from synapse.api.constants import EventTypes from synapse.util.metrics import Measure from synapse.util.logcontext import ( - make_deferred_yieldable, preserve_fn, run_in_background, + make_deferred_yieldable, run_in_background, ) import logging @@ -111,9 +111,7 @@ class ApplicationServicesHandler(object): # Fork off pushes to these services for service in services: - preserve_fn(self.scheduler.submit_event_for_as)( - service, event - ) + self.scheduler.submit_event_for_as(service, event) @defer.inlineCallbacks def handle_room_events(events): |