summary refs log tree commit diff
path: root/synapse/storage/databases/main/receipts.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-05-16 15:56:38 -0400
committerGitHub <noreply@github.com>2023-05-16 15:56:38 -0400
commit375b0a8a119bb925ca280f050a25a931662fcbb5 (patch)
tree29e8aa545c741d9dc295e3d687b9bc2341852578 /synapse/storage/databases/main/receipts.py
parentRun mypy type checking with the minimum supported Python version (#15602) (diff)
downloadsynapse-375b0a8a119bb925ca280f050a25a931662fcbb5.tar.xz
Update code to refer to "workers". (#15606)
A bunch of comments and variables are out of date and use
obsolete terms.
Diffstat (limited to 'synapse/storage/databases/main/receipts.py')
-rw-r--r--synapse/storage/databases/main/receipts.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/synapse/storage/databases/main/receipts.py b/synapse/storage/databases/main/receipts.py

index 074942b167..5ee5c7ad9f 100644 --- a/synapse/storage/databases/main/receipts.py +++ b/synapse/storage/databases/main/receipts.py
@@ -85,13 +85,10 @@ class ReceiptsWorkerStore(SQLBaseStore): else: self._can_write_to_receipts = True + # Multiple writers are not supported for SQLite. + # # We shouldn't be running in worker mode with SQLite, but its useful # to support it for unit tests. - # - # If this process is the writer than we need to use - # `StreamIdGenerator`, otherwise we use `SlavedIdTracker` which gets - # updated over replication. (Multiple writers are not supported for - # SQLite). self._receipts_id_gen = StreamIdGenerator( db_conn, hs.get_replication_notifier(),