summary refs log tree commit diff
path: root/synapse/_scripts
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-06-29 11:32:38 +0100
committerGitHub <noreply@github.com>2022-06-29 10:32:38 +0000
commit92a0c18ef0f42b80e382667141e6593ab30e3776 (patch)
tree5785ed61de85b649bb7e75445a197d28340fe6f0 /synapse/_scripts
parentDocument the `--report-stats` argument (#13029) (diff)
downloadsynapse-92a0c18ef0f42b80e382667141e6593ab30e3776.tar.xz
Improve performance of getting unread counts in rooms (#13119)
Diffstat (limited to 'synapse/_scripts')
-rwxr-xr-xsynapse/_scripts/synapse_port_db.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/_scripts/synapse_port_db.py b/synapse/_scripts/synapse_port_db.py
index 9c06c837dc..f3f9c6d54c 100755
--- a/synapse/_scripts/synapse_port_db.py
+++ b/synapse/_scripts/synapse_port_db.py
@@ -270,6 +270,9 @@ class MockHomeserver:
     def get_instance_name(self) -> str:
         return "master"
 
+    def should_send_federation(self) -> bool:
+        return False
+
 
 class Porter:
     def __init__(