From 0812894e674c724e6e1bf0c841c90f56857d10e7 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 25 Jul 2024 17:13:59 +0100 Subject: Update comments --- synapse/handlers/sliding_sync.py | 4 ++-- synapse/types/rest/client/__init__.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'synapse') 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 -- cgit 1.5.1