Skip to content
Snippets Groups Projects
Commit ef358906 authored by Neil Johnson's avatar Neil Johnson
Browse files

prevent total number of reserved users being too large

parent e8eba2b4
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,9 @@ class MonthlyActiveUsersStore(SQLBaseStore):
# TODO Why can't I do this in init?
store = self.hs.get_datastore()
reserved_user_list = []
for tp in threepids:
# Do not add more reserved users than the total allowable number
for tp in threepids[:self.hs.config.max_mau_value]:
user_id = yield store.get_user_id_by_threepid(
tp["medium"], tp["address"]
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment