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

Commit

Permalink
Remove redundant call to preserve_fn
Browse files Browse the repository at this point in the history
submit_event_for_as doesn't return a deferred anyway, so this is pointless.
  • Loading branch information
richvdh committed Apr 27, 2018
1 parent 0ced8b5 commit 97c2519
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 97c2519

Please sign in to comment.