From dc5dab62e81c066375c58b817d77b5364edbecce Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 3 Jun 2018 14:51:47 -0700 Subject: [PATCH] modules/federation/backfill_ids: Raise default max limit; minor cleanup. --- modules/federation/backfill_ids.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/federation/backfill_ids.cc b/modules/federation/backfill_ids.cc index 1f25ad943..d3407b146 100644 --- a/modules/federation/backfill_ids.cc +++ b/modules/federation/backfill_ids.cc @@ -30,7 +30,7 @@ conf::item backfill_ids_limit_max { { "name", "ircd.federation.backfill_ids.limit.max" }, - { "default", 2048L /* TODO: hiiigherrrr */ }, + { "default", 131072L }, }; conf::item @@ -51,7 +51,7 @@ calc_limit(const resource::request &request) if(!limit) return size_t(backfill_ids_limit_default); - size_t ret + const size_t &ret { lex_cast(limit) }; @@ -93,7 +93,7 @@ get__backfill_ids(client &client, m::room::messages it { - room_id, event_id + room }; const unique_buffer buf