From 8b5ae9d80df73b327c545cc7f782e5f0ee038f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 22 Jun 2020 19:40:54 +0200 Subject: [PATCH] server: Lower the sync limit. --- matrix/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix/server.py b/matrix/server.py index f1ca5c2..003ecf0 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -852,7 +852,7 @@ class MatrixServer(object): timeout = 0 if self.transport_type == TransportType.HTTP else 30000 sync_filter = { "room": { - "timeline": {"limit": 5000}, + "timeline": {"limit": limit}, "state": {"lazy_load_members": True} } } @@ -1968,7 +1968,7 @@ def matrix_timer_cb(server_name, remaining_calls): timeout = 0 if server.transport_type == TransportType.HTTP else 30000 sync_filter = { "room": { - "timeline": {"limit": 5000}, + "timeline": {"limit": 500}, "state": {"lazy_load_members": True} } }