0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/client/rooms/initialsync: Use a conf item here fwiw.

This commit is contained in:
Jason Volk 2018-04-21 23:55:27 -07:00
parent 6dfe99e8e2
commit 246e20d624

View file

@ -10,6 +10,13 @@
using namespace ircd;
conf::item<size_t>
initial_backfill
{
{ "name", "ircd.rooms.initialsync.backfill" },
{ "default", 64L }
};
static resource::response
get__initialsync_remote(client &client,
const resource::request &request,
@ -33,7 +40,7 @@ get__initialsync_remote(client &client,
};
m::v1::backfill::opts bf_opts;
bf_opts.limit = 1024;
bf_opts.limit = size_t(initial_backfill);
m::v1::backfill backfill_request
{
room_id, backfill_buffer, std::move(bf_opts)