Change load limit params

This commit is contained in:
Erik Johnston 2016-01-28 14:11:16 +00:00
parent 3c6518ddbf
commit 571a566399

View File

@ -608,8 +608,8 @@ class SyncHandler(BaseHandler):
"""
filtering_factor = 2
timeline_limit = sync_config.filter_collection.timeline_limit()
load_limit = timeline_limit * filtering_factor
max_repeat = 3 # Only try a few times per room, otherwise
load_limit = max(timeline_limit * filtering_factor, 10)
max_repeat = 5 # Only try a few times per room, otherwise
room_key = now_token.room_key
end_key = room_key