From 8dbaab94733ba05d7081b1c96bd0b0a71b4c3978 Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 3 May 2020 20:51:55 +0200 Subject: [PATCH] reduce sync timeout --- scrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrape.py b/scrape.py index 3225acd..ce01c89 100644 --- a/scrape.py +++ b/scrape.py @@ -179,7 +179,7 @@ async def main(): next_update = datetime.now() + timedelta(minutes=15) for mxid in next_batch: - sync = await matrix[mxid].sync(timeout=30000, + sync = await matrix[mxid].sync(timeout=10000, sync_filter=sync_filter, since=next_batch[mxid]) next_batch[mxid] = sync.next_batch