summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-04-24 14:07:47 +0100
committerRichard van der Hoff <richard@matrix.org>2020-04-24 14:07:47 +0100
commit649e48a7991b79891412ca2c745fbbaa1301ba23 (patch)
tree253690c648b7c9ec4f885ddfc342168c80d674f6 /synapse/handlers/sync.py
parentMerge branch 'release-v1.12.4' into matrix-org-hotfixes (diff)
parentMerge pull request #7337 from matrix-org/rav/fix_update_limit_assertion (diff)
downloadsynapse-649e48a7991b79891412ca2c745fbbaa1301ba23.tar.xz
Merge branch 'develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py

index 55498c25b4..d15efd474e 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py
@@ -26,7 +26,7 @@ from prometheus_client import Counter from synapse.api.constants import EventTypes, Membership from synapse.api.filtering import FilterCollection from synapse.events import EventBase -from synapse.logging.context import LoggingContext +from synapse.logging.context import current_context from synapse.push.clientformat import format_push_rules_for_user from synapse.storage.roommember import MemberSummary from synapse.storage.state import StateFilter @@ -304,7 +304,7 @@ class SyncHandler(object): else: sync_type = "incremental_sync" - context = LoggingContext.current_context() + context = current_context() if context: context.tag = sync_type @@ -1642,7 +1642,7 @@ class SyncHandler(object): ) # We loop through all room ids, even if there are no new events, in case - # there are non room events taht we need to notify about. + # there are non room events that we need to notify about. for room_id in sync_result_builder.joined_room_ids: room_entry = room_to_events.get(room_id, None)