diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-07-24 00:57:48 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-07-24 00:57:48 +0100 |
commit | cf2d15c6a953d42207fb2c8fe5dc57ee7fdae7ce (patch) | |
tree | 39f8856c84e96b57064bf9e9a17ae2554ed09574 /synapse/handlers/initial_sync.py | |
parent | Changelog (diff) | |
download | synapse-cf2d15c6a953d42207fb2c8fe5dc57ee7fdae7ce.tar.xz |
another couple of logcontext leaks
Diffstat (limited to 'synapse/handlers/initial_sync.py')
-rw-r--r-- | synapse/handlers/initial_sync.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/handlers/initial_sync.py b/synapse/handlers/initial_sync.py index 50b13d8820..40e7580a61 100644 --- a/synapse/handlers/initial_sync.py +++ b/synapse/handlers/initial_sync.py @@ -148,13 +148,15 @@ class InitialSyncHandler(BaseHandler): try: if event.membership == Membership.JOIN: room_end_token = now_token.room_key - deferred_room_state = self.state_handler.get_current_state( - event.room_id + deferred_room_state = run_in_background( + self.state_handler.get_current_state, + event.room_id, ) elif event.membership == Membership.LEAVE: room_end_token = "s%d" % (event.stream_ordering,) - deferred_room_state = self.store.get_state_for_events( - [event.event_id], None + deferred_room_state = run_in_background( + self.store.get_state_for_events, + [event.event_id], None, ) deferred_room_state.addCallback( lambda states: states[event.event_id] |