summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-04-27 12:09:47 +0100
committerRichard van der Hoff <richard@matrix.org>2018-04-30 00:48:36 +0100
commitaf3cc5051124982182e7151e35fb72f857d81392 (patch)
tree53e3cc95de40fd562e11855e1df7d4dffd1f0dbb /synapse/handlers
parentMerge pull request #3155 from NotAFile/py3-bytes-1 (diff)
downloadsynapse-af3cc5051124982182e7151e35fb72f857d81392.tar.xz
Remove redundant call to preserve_fn
submit_event_for_as doesn't return a deferred anyway, so this is pointless.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/appservice.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index 6cc2388306..f6c7b89270 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):