summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2024-07-25 17:13:59 +0100
committerErik Johnston <erik@matrix.org>2024-07-25 17:13:59 +0100
commit0812894e674c724e6e1bf0c841c90f56857d10e7 (patch)
treee698ff7081b0523c4f5548f3fd1bc9e13d15ed93 /synapse
parentMerge remote-tracking branch 'origin/develop' into erikj/ss_room_store (diff)
downloadsynapse-0812894e674c724e6e1bf0c841c90f56857d10e7.tar.xz
Update comments
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/sliding_sync.py4
-rw-r--r--synapse/types/rest/client/__init__.py5
2 files changed, 5 insertions, 4 deletions
diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py

index 69be113117..57c8934752 100644 --- a/synapse/handlers/sliding_sync.py +++ b/synapse/handlers/sliding_sync.py
@@ -2207,8 +2207,8 @@ class SlidingSyncConnectionStore: user_id = sync_config.user.to_string() - # If this is missing, only one sliding sync connection is allowed per - # given conn_id. + # Only one sliding sync connection is allowed per given conn_id (empty + # or not). conn_id = sync_config.conn_id or "" if sync_config.requester.device_id: diff --git a/synapse/types/rest/client/__init__.py b/synapse/types/rest/client/__init__.py
index 511e6e2d9f..4fb30d05b4 100644 --- a/synapse/types/rest/client/__init__.py +++ b/synapse/types/rest/client/__init__.py
@@ -120,8 +120,9 @@ class SlidingSyncBody(RequestBodyModel): Sliding Sync API request body. Attributes: - conn_id: An optional string to identify this connection to the server. If this - is missing, only one sliding sync connection is allowed per given conn_id. + conn_id: An optional string to identify this connection to the server. + Only one sliding sync connection is allowed per given conn_id (empty + or not). lists: Sliding window API. A map of list key to list information (:class:`SlidingSyncList`). Max lists: 100. The list keys should be arbitrary strings which the client is using to refer to the list. Keep this