mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/federation/backfill_ids: Raise default max limit; minor cleanup.
This commit is contained in:
parent
50835ce7bd
commit
dc5dab62e8
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ conf::item<size_t>
|
||||||
backfill_ids_limit_max
|
backfill_ids_limit_max
|
||||||
{
|
{
|
||||||
{ "name", "ircd.federation.backfill_ids.limit.max" },
|
{ "name", "ircd.federation.backfill_ids.limit.max" },
|
||||||
{ "default", 2048L /* TODO: hiiigherrrr */ },
|
{ "default", 131072L },
|
||||||
};
|
};
|
||||||
|
|
||||||
conf::item<size_t>
|
conf::item<size_t>
|
||||||
|
@ -51,7 +51,7 @@ calc_limit(const resource::request &request)
|
||||||
if(!limit)
|
if(!limit)
|
||||||
return size_t(backfill_ids_limit_default);
|
return size_t(backfill_ids_limit_default);
|
||||||
|
|
||||||
size_t ret
|
const size_t &ret
|
||||||
{
|
{
|
||||||
lex_cast<size_t>(limit)
|
lex_cast<size_t>(limit)
|
||||||
};
|
};
|
||||||
|
@ -93,7 +93,7 @@ get__backfill_ids(client &client,
|
||||||
|
|
||||||
m::room::messages it
|
m::room::messages it
|
||||||
{
|
{
|
||||||
room_id, event_id
|
room
|
||||||
};
|
};
|
||||||
|
|
||||||
const unique_buffer<mutable_buffer> buf
|
const unique_buffer<mutable_buffer> buf
|
||||||
|
|
Loading…
Reference in a new issue