Merge pull request #935 from matrix-org/erikj/backfill_notifs

Don't notify pusher pool for backfilled events
This commit is contained in:
Erik Johnston 2016-07-20 13:39:16 +01:00 committed by GitHub
commit aba0b2a39b
1 changed files with 6 additions and 5 deletions

View File

@ -1118,11 +1118,12 @@ class FederationHandler(BaseHandler):
backfilled=backfilled, backfilled=backfilled,
) )
# this intentionally does not yield: we don't care about the result if not backfilled:
# and don't need to wait for it. # this intentionally does not yield: we don't care about the result
preserve_fn(self.hs.get_pusherpool().on_new_notifications)( # and don't need to wait for it.
event_stream_id, max_stream_id preserve_fn(self.hs.get_pusherpool().on_new_notifications)(
) event_stream_id, max_stream_id
)
defer.returnValue((context, event_stream_id, max_stream_id)) defer.returnValue((context, event_stream_id, max_stream_id))