mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/client/rooms/initialsync: Use a conf item here fwiw.
This commit is contained in:
parent
6dfe99e8e2
commit
246e20d624
1 changed files with 8 additions and 1 deletions
|
@ -10,6 +10,13 @@
|
||||||
|
|
||||||
using namespace ircd;
|
using namespace ircd;
|
||||||
|
|
||||||
|
conf::item<size_t>
|
||||||
|
initial_backfill
|
||||||
|
{
|
||||||
|
{ "name", "ircd.rooms.initialsync.backfill" },
|
||||||
|
{ "default", 64L }
|
||||||
|
};
|
||||||
|
|
||||||
static resource::response
|
static resource::response
|
||||||
get__initialsync_remote(client &client,
|
get__initialsync_remote(client &client,
|
||||||
const resource::request &request,
|
const resource::request &request,
|
||||||
|
@ -33,7 +40,7 @@ get__initialsync_remote(client &client,
|
||||||
};
|
};
|
||||||
|
|
||||||
m::v1::backfill::opts bf_opts;
|
m::v1::backfill::opts bf_opts;
|
||||||
bf_opts.limit = 1024;
|
bf_opts.limit = size_t(initial_backfill);
|
||||||
m::v1::backfill backfill_request
|
m::v1::backfill backfill_request
|
||||||
{
|
{
|
||||||
room_id, backfill_buffer, std::move(bf_opts)
|
room_id, backfill_buffer, std::move(bf_opts)
|
||||||
|
|
Loading…
Reference in a new issue