longer timeouts

master
lub 5 years ago
parent 57e62ea871
commit 0bcddaa5dc

@ -175,10 +175,10 @@ async def main():
else: else:
# no new posts found # no new posts found
pass pass
next_update = datetime.now() + timedelta(minutes=30) next_update = datetime.now() + timedelta(minutes=15)
for mxid in next_batch: for mxid in next_batch:
sync = await matrix[mxid].sync(timeout=10000, sync = await matrix[mxid].sync(timeout=30000,
sync_filter=sync_filter, sync_filter=sync_filter,
since=next_batch[mxid]) since=next_batch[mxid])
next_batch[mxid] = sync.next_batch next_batch[mxid] = sync.next_batch

Loading…
Cancel
Save