Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3143 from matrix-org/rav/remove_redundant_preserv…
Browse files Browse the repository at this point in the history
…e_fn

Remove redundant call to preserve_fn
  • Loading branch information
richvdh authored Apr 30, 2018
2 parents fdb6849 + af3cc50 commit 63ae5cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions synapse/handlers/appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
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
Expand Down Expand Up @@ -111,9 +111,7 @@ def handle_event(event):

# 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):
Expand Down

0 comments on commit 63ae5cb

Please sign in to comment.