diff options
author | Erik Johnston <erik@matrix.org> | 2015-11-05 17:25:33 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-11-05 17:25:33 +0000 |
commit | 5ee070d21f50e3a937b2003737fd8b6ed70888ce (patch) | |
tree | ea19812a5a5a55e12875ace1af1a43ed07a1f09c /synapse/handlers/search.py | |
parent | COMMENTS (diff) | |
download | synapse-5ee070d21f50e3a937b2003737fd8b6ed70888ce.tar.xz |
Increment by one, not five
Diffstat (limited to 'synapse/handlers/search.py')
-rw-r--r-- | synapse/handlers/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py index c39f4697e3..65255804f6 100644 --- a/synapse/handlers/search.py +++ b/synapse/handlers/search.py @@ -178,7 +178,7 @@ class SearchHandler(BaseHandler): # or we run out of things. # But only go around 5 times since otherwise synapse will be sad. while len(room_events) < search_filter.limit() and i < 5: - i += 5 + i += 1 results = yield self.store.search_room( room_id, search_term, keys, search_filter.limit() * 2, pagination_token=pagination_token, |