mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd:Ⓜ️:init::backfill: Add conf item for local_joined_only option; default true.
This commit is contained in:
parent
f471093d3e
commit
6123040239
1 changed files with 9 additions and 1 deletions
|
@ -22,6 +22,7 @@ namespace ircd::m::init::backfill
|
|||
extern std::unique_ptr<context> worker_context;
|
||||
extern conf::item<bool> enable;
|
||||
extern conf::item<size_t> pool_size;
|
||||
extern conf::item<bool> local_joined_only;
|
||||
extern log::log log;
|
||||
};
|
||||
|
||||
|
@ -45,6 +46,13 @@ ircd::m::init::backfill::pool_size
|
|||
{ "default", 12L },
|
||||
};
|
||||
|
||||
decltype(ircd::m::init::backfill::local_joined_only)
|
||||
ircd::m::init::backfill::local_joined_only
|
||||
{
|
||||
{ "name", "m.init.backfill.local_joined_only" },
|
||||
{ "default", true },
|
||||
};
|
||||
|
||||
decltype(ircd::m::init::backfill::worker_context)
|
||||
ircd::m::init::backfill::worker_context;
|
||||
|
||||
|
@ -115,7 +123,7 @@ try
|
|||
// one member from our server in a joined state.
|
||||
rooms::opts opts;
|
||||
opts.remote_only = true;
|
||||
opts.local_joined_only = true;
|
||||
opts.local_joined_only = local_joined_only;
|
||||
|
||||
// This is only an estimate because the rooms on the server can change
|
||||
// before this task completes.
|
||||
|
|
Loading…
Add table
Reference in a new issue